/* Public SEO pages (src/seo): same paper / pine / Fraunces look as the app. */
:root {
  --paper: #fbfaf7;
  --ink: #1c1a16;
  --muted: #6e675c;
  --hairline: #e4dfd5;
  --pine: #1e3d2f;
  --green: #2fa05c;
  --amber: #c08a1d;
  --red: #c14a33;
  --serif: Fraunces, Georgia, serif;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: system-ui, -apple-system, sans-serif;
  line-height: 1.55;
}
a { color: var(--pine); }
.page { max-width: 60rem; margin: 0 auto; padding: 1.5rem 1rem 4rem; }

.masthead {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap;
  gap: 0.75rem 1rem; border-bottom: 2px solid var(--ink); padding-bottom: 0.9rem;
}
.brand { display: flex; align-items: center; gap: 0.5rem; text-decoration: none; }
.mark { width: 1.8rem; height: 1.8rem; border-radius: 7px; }
.wordmark { font-family: var(--serif); font-weight: 650; font-size: 1.6rem; color: var(--pine); }
.top-nav { display: flex; align-items: center; gap: 0.4rem 1rem; flex-wrap: wrap; font-size: 0.92rem; }
.top-nav a:not(.btn) { color: var(--ink); text-decoration: none; }
.top-nav a:not(.btn):hover { text-decoration: underline; }

h1, h2, h3 { font-family: var(--serif); color: var(--ink); line-height: 1.2; }
h1 { font-weight: 650; font-size: clamp(1.8rem, 5vw, 2.5rem); margin: 0.25rem 0 0.75rem; max-width: 44rem; }
h2 { font-weight: 600; font-size: 1.45rem; margin: 2rem 0 0.6rem; }
h3 { font-weight: 600; font-size: 1.1rem; margin: 1rem 0 0.5rem; }
.hero { margin: 2rem 0 1.25rem; }
.eyebrow { text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.78rem; color: var(--muted); margin: 0; }
.lede { font-family: var(--serif); font-size: 1.2rem; line-height: 1.5; margin: 0 0 1rem; max-width: 46rem; }
.fine { color: var(--muted); font-size: 0.85rem; margin: 0.4rem 0; }
.crumbs { font-size: 0.85rem; color: var(--muted); margin: 1rem 0 0; }
.count { color: var(--muted); font-family: system-ui, -apple-system, sans-serif; font-size: 0.85rem; font-weight: 400; }

.cta-row { display: flex; gap: 0.75rem; align-items: center; flex-wrap: wrap; margin: 0.75rem 0 0.25rem; }
.btn {
  display: inline-block; text-decoration: none; border-radius: 6px; padding: 0.65rem 1.3rem;
  font-size: 1rem; cursor: pointer; border: 1px solid var(--pine); font-family: inherit;
}
.btn-small { padding: 0.4rem 0.9rem; font-size: 0.9rem; }
.btn-primary { background: var(--pine); color: #fff; }
.btn-primary:hover { filter: brightness(1.12); }
.btn-primary:disabled { opacity: 0.6; cursor: wait; }
.btn-secondary { background: #fff; color: var(--pine); }
.btn-secondary:hover { background: var(--pine); color: #fff; }

.prose { max-width: 46rem; }
.prose ul, .choose ul { padding-left: 1.2rem; }
.prose li, .choose li { margin: 0.3rem 0; }

.cta-band {
  margin: 2.5rem 0; padding: 1.25rem 1.4rem; background: #fff;
  border: 2px solid var(--pine); border-radius: 10px;
}
.cta-band h2 { margin-top: 0; }
.cta-band p { max-width: 44rem; }

.faq dl { margin: 0; max-width: 46rem; }
.faq dt { font-weight: 600; margin-top: 1rem; }
.faq dd { margin: 0.25rem 0 0; color: #3b372f; }

/* Comparison */
.table-wrap { overflow-x: auto; border: 1px solid var(--hairline); border-radius: 8px; background: #fff; }
table { border-collapse: collapse; width: 100%; min-width: 34rem; font-size: 0.92rem; }
th, td { text-align: left; vertical-align: top; padding: 0.65rem 0.8rem; border-bottom: 1px solid var(--hairline); }
thead th { font-family: var(--serif); font-size: 1rem; background: #f4f1ea; }
tbody th { width: 22%; font-weight: 600; }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }
.choose { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.more-links { margin-top: 2rem; }

/* Companies */
.dept h2 { font-size: 1.15rem; margin-top: 1.75rem; }
.roles, .company-list { list-style: none; margin: 0; padding: 0; }
.roles li { padding: 0.6rem 0; border-bottom: 1px solid var(--hairline); display: grid; gap: 0.15rem; }
.role-title a { font-weight: 600; text-decoration: none; }
.role-title a:hover { text-decoration: underline; }
.role-meta { font-size: 0.85rem; color: var(--muted); }
.role-summary { font-size: 0.9rem; color: #3b372f; }
.letter h2 { font-size: 1.2rem; margin: 1.5rem 0 0.4rem; border-bottom: 1px solid var(--hairline); }
.company-list { columns: 3 14rem; column-gap: 1.5rem; }
.company-list li { break-inside: avoid; padding: 0.2rem 0; }

/* ATS checker */
.checker { margin: 1rem 0; }
.checker-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.checker label { display: grid; gap: 0.35rem; font-weight: 600; font-size: 0.95rem; }
.checker textarea {
  width: 100%; font: inherit; font-weight: 400; font-size: 0.9rem; padding: 0.6rem;
  border: 1px solid #cfc8bb; border-radius: 6px; background: #fff; resize: vertical;
}
.checker textarea:focus { outline: 2px solid var(--pine); outline-offset: 1px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
#ats-result:empty { display: none; }
#ats-result { margin: 1.5rem 0; scroll-margin-top: 1rem; }
.error { color: var(--red); font-weight: 600; }
.fit { background: #fff; border: 1px solid var(--hairline); border-left: 6px solid var(--muted); border-radius: 8px; padding: 1rem 1.2rem; margin-bottom: 1rem; }
.fit-green { border-left-color: var(--green); }
.fit-yellow { border-left-color: var(--amber); }
.fit-red { border-left-color: var(--red); }
.fit-head { display: flex; gap: 1rem; align-items: center; }
.fit-pct { font-family: var(--serif); font-size: 2.4rem; font-weight: 650; }
.fit-green .fit-pct { color: var(--green); }
.fit-yellow .fit-pct { color: var(--amber); }
.fit-red .fit-pct { color: var(--red); }
.reqs { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.5rem; }
.reqs li { display: grid; grid-template-columns: 4.2rem 1fr; gap: 0.6rem; align-items: start; }
.reqs .req-level { display: block; }
.req-mark { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; padding: 0.15rem 0.4rem; border-radius: 4px; text-align: center; }
.reqs .ok .req-mark { background: #e3f3e8; color: #1f6e3f; }
.reqs .gap .req-mark { background: #f8e4df; color: #9a3423; }
.kw { background: #fff; border: 1px solid var(--hairline); border-radius: 8px; padding: 1rem 1.2rem; }
.kw h3 { margin-top: 0; }
.chips { list-style: none; padding: 0; margin: 0.5rem 0 0; display: flex; flex-wrap: wrap; gap: 0.4rem; }
.chip { font-size: 0.85rem; padding: 0.2rem 0.6rem; border-radius: 999px; border: 1px solid; }
.chip.hit { background: #e3f3e8; border-color: #b9dfc6; color: #1f6e3f; }
.chip.miss { background: #fbefe9; border-color: #efc9bd; color: #9a3423; }
.next { margin-top: 1rem; }

.site-foot { margin-top: 3rem; padding-top: 1rem; border-top: 1px solid var(--hairline); color: var(--muted); font-size: 0.85rem; }
.site-foot nav { display: flex; flex-wrap: wrap; gap: 0.4rem 1.1rem; margin-bottom: 0.6rem; }

@media (max-width: 720px) {
  .checker-grid, .choose { grid-template-columns: 1fr; }
  .company-list { columns: 1; }
  .top-nav { font-size: 0.85rem; }
}
