/* TurfSignal marketing site.
   System fonts, no external requests, no inline styles (CSP: style-src 'self').
   Light and dark follow prefers-color-scheme. Navy zones (header, hero, closing band, footer)
   carry the brand and look the same in both schemes.
   Brand: navy #011b46, green #02e099 (primary), yellow #fbb437 (small highlight).
   Green text fails AA on light backgrounds: there, green is only a FILL behind navy text,
   and text accents use --accent-text (#007a55, checked >= 4.5:1). */

:root {
  color-scheme: light dark;

  /* Brand, fixed in both schemes */
  --navy: #011b46;
  --on-navy: #e6edf7;
  --on-navy-strong: #ffffff;
  --on-navy-muted: #a9b9d3;
  --accent: #02e099;
  --accent-hover: #3cf0b4;
  --accent-ink: #011b46;
  --accent-on-navy: #02e099;
  --highlight: #fbb437;

  /* Page, light scheme */
  --bg: #f5f7fa;
  --surface: #ffffff;
  --surface-2: #ecf1f7;
  --text: #011b46;
  --muted: #44536b;
  --border: #d3dbe7;
  --accent-text: #007a55;
  --accent-soft: #d7f8ec;
  --focus: #011b46;
  --warn-bg: #fef3c7;
  --warn-text: #78350f;
  --warn-border: #d97706;
  --dnc-bg: #fee2e2;
  --dnc-text: #991b1b;
  --shadow: 0 1px 2px rgb(1 27 70 / .06), 0 12px 32px -8px rgb(1 27 70 / .14);

  --radius: 14px;
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  --wrap: 72rem;
  --gutter: clamp(1rem, 4vw, 2rem);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000c22;
    --surface: #03183b;
    --surface-2: #0a2550;
    --text: #e6edf7;
    --muted: #a9b9d3;
    --border: #1d3a66;
    --accent-text: #02e099;
    --accent-soft: rgb(2 224 153 / .14);
    --focus: #fbb437;
    --warn-bg: #3a2a0a;
    --warn-text: #fde68a;
    --warn-border: #b45309;
    --dnc-bg: rgb(239 68 68 / .18);
    --dnc-text: #fca5a5;
    --shadow: 0 0 0 1px rgb(169 185 211 / .06);
  }
}

/* ---------------------------------------------------------------- base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 1rem/1.6 var(--font); }
img, svg { max-width: 100%; }
a { color: var(--accent-text); text-underline-offset: .18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
[id] { scroll-margin-top: 1rem; }

h1, h2, h3 { line-height: 1.12; margin: 0 0 .55em; text-wrap: balance; }
h1 { font-size: clamp(2.15rem, 6.2vw, 3.7rem); font-weight: 800; letter-spacing: -.035em; }
h2 { font-size: clamp(1.65rem, 3.8vw, 2.5rem); font-weight: 800; letter-spacing: -.03em; }
h3 { font-size: 1.15rem; font-weight: 700; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.25rem; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.skip-link {
  position: absolute; left: .75rem; top: -5rem; z-index: 100;
  padding: .65rem 1rem; border-radius: 8px;
  background: var(--surface); color: var(--text); font-weight: 700;
}
.skip-link:focus { top: .75rem; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.eyebrow {
  display: inline-block; margin: 0 0 .9rem;
  font: 700 .78rem/1.2 var(--mono); letter-spacing: .1em; text-transform: uppercase;
  color: var(--accent-text);
}

/* ---------------------------------------------------------------- navy zones */
.navy { background-color: var(--navy); color: var(--on-navy); --focus: var(--highlight); }
.navy a:not(.btn) { color: var(--accent-on-navy); }
.navy .eyebrow { color: var(--accent-on-navy); }

/* ---------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 48px; padding: .75rem 1.3rem; border-radius: 10px;
  border: 2px solid transparent;
  font: 700 1rem/1.1 var(--font); text-decoration: none; white-space: nowrap;
  transition: background-color .15s ease, border-color .15s ease;
}
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--accent-hover); }
.btn-outline { background: transparent; color: var(--text); border-color: var(--border); }
.btn-outline:hover { border-color: var(--muted); }
.navy .btn-outline { color: var(--on-navy-strong); border-color: rgb(230 237 247 / .45); }
.navy .btn-outline:hover { border-color: var(--on-navy-strong); background: rgb(255 255 255 / .06); }
.btn-sm { min-height: 44px; padding: .5rem .95rem; font-size: .95rem; }

/* ---------------------------------------------------------------- header */
.site-header { border-bottom: 1px solid rgb(169 185 211 / .16); }
.nav { display: flex; align-items: center; gap: 1rem; min-height: 4.5rem; }
.brand { display: inline-flex; align-items: center; flex: none; border-radius: 6px; }
.brand img { display: block; height: 40px; width: auto; }
.nav-links { display: flex; gap: 1.4rem; list-style: none; margin: 0; padding: 0; }
.site-header nav { margin-left: auto; }
.navy .nav-links a { color: var(--on-navy); text-decoration: none; font-weight: 600; font-size: .95rem; padding: .5rem 0; }
.navy .nav-links a:hover { color: var(--on-navy-strong); text-decoration: underline; }
.navy .nav-links a[aria-current="page"] { color: var(--on-navy-strong); text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; }
.nav-cta { display: flex; align-items: center; gap: .5rem; margin-left: 1.25rem; }

@media (max-width: 820px) {
  .site-header nav { display: none; }
  .nav-cta { margin-left: auto; }
}
@media (max-width: 420px) {
  /* Every page repeats "Get started" in its body, so the header keeps only Sign in. */
  .nav-cta .btn-primary { display: none; }
  .brand img { height: 34px; }
}

/* ---------------------------------------------------------------- hero */
.hero {
  padding-block: clamp(2.5rem, 7vw, 5rem) clamp(3rem, 8vw, 6rem);
  background-image:
    radial-gradient(48rem 26rem at 88% 6%, rgb(2 224 153 / .13), transparent 65%),
    linear-gradient(rgb(169 185 211 / .07) 1px, transparent 1px),
    linear-gradient(90deg, rgb(169 185 211 / .07) 1px, transparent 1px);
  background-size: auto, 44px 44px, 44px 44px;
}
.hero-grid { display: grid; gap: clamp(2rem, 5vw, 3.5rem); align-items: center; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1.1fr .9fr; } }
.hero h1 { color: var(--on-navy-strong); }
.hero h1 .hl { color: var(--accent); }
.lede { font-size: clamp(1.05rem, 2.3vw, 1.25rem); color: var(--on-navy-muted); max-width: 36rem; }
.cta-row { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }
.hero-note { margin: 1.1rem 0 0; font-size: .92rem; color: var(--on-navy-muted); }
.hero-art { max-width: 34rem; width: 100%; justify-self: center; margin: 0; }
.hero-art svg {
  display: block; width: 100%; height: auto; border-radius: 18px;
  box-shadow: 0 30px 60px -24px rgb(0 0 0 / .7), 0 0 0 1px rgb(169 185 211 / .2);
}
.hero-art text { font-family: var(--font); }
.pulse { transform-box: fill-box; transform-origin: center; animation: pulse 2.4s ease-out infinite; }
@keyframes pulse {
  from { transform: scale(1); opacity: .75; }
  to { transform: scale(3.2); opacity: 0; }
}

/* ---------------------------------------------------------------- sections */
.section { padding-block: clamp(3rem, 8vw, 5.5rem); }
.section-alt { background: var(--surface); border-block: 1px solid var(--border); }
.section-head { max-width: 44rem; margin-bottom: 2.25rem; }
.section-head p { color: var(--muted); font-size: 1.1rem; }

.steps {
  list-style: none; margin: 0; padding: 0; counter-reset: step;
  display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
}
.step {
  counter-increment: step; position: relative;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.5rem;
}
.step::before {
  content: counter(step, decimal-leading-zero);
  display: block; margin-bottom: .75rem;
  font: 700 .85rem/1 var(--mono); color: var(--accent-text);
}
.step p { color: var(--muted); margin: 0; }

.features { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr)); }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; }
.section-alt .card { background: var(--bg); }
.card p { color: var(--muted); }
.card p:last-child, .card ul:last-child { margin-bottom: 0; }
.card-wide { grid-column: 1 / -1; }
.card .fine { font-size: .9rem; }
.icon {
  width: 42px; height: 42px; border-radius: 11px; margin-bottom: 1rem;
  display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent-text);
}
.icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Outcome chips. Colors are the app's pin colors: data, not theme. */
.chips { display: flex; flex-wrap: wrap; gap: .4rem; list-style: none; padding: 0; margin: 1rem 0 0; }
.chips li {
  display: inline-flex; align-items: center; gap: .45rem;
  padding: .3rem .7rem; border-radius: 999px;
  background: var(--surface-2); border: 1px solid var(--border);
  font-size: .85rem; font-weight: 600;
}
.chips li::before { content: ""; width: .62rem; height: .62rem; border-radius: 50%; background: var(--oc); flex: none; }
.oc-not-interested { --oc: #ef4444; }
.oc-not-home { --oc: #6b7280; }
.oc-inspected { --oc: #3b82f6; }
.oc-no-damage { --oc: #eab308; }
.oc-no-soliciting { --oc: #f97316; }
.oc-sale { --oc: #10b981; }
.oc-existing { --oc: #8b5cf6; }
.oc-another { --oc: #ec4899; }
.oc-follow-up { --oc: #06b6d4; }
.oc-scheduled { --oc: #a855f7; }
.oc-lead { --oc: #0ea5e9; }

/* Check lists (pure CSS ticks, no images) */
.checks { list-style: none; padding: 0; margin: 1.25rem 0; display: grid; gap: .65rem; }
.checks li { position: relative; padding-left: 2rem; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: .15em;
  width: 1.3rem; height: 1.3rem; border-radius: 50%; background: var(--accent-soft);
}
.checks li::after {
  content: ""; position: absolute; left: .47rem; top: .38em;
  width: .34rem; height: .62rem;
  border: solid var(--accent-text); border-width: 0 2.5px 2.5px 0; transform: rotate(45deg);
}

/* Owner lookup spotlight */
.spotlight { display: grid; gap: clamp(2rem, 5vw, 3.5rem); align-items: center; }
@media (min-width: 900px) { .spotlight { grid-template-columns: 1fr 1fr; } }
.spotlight .fine { color: var(--muted); font-size: .92rem; border-left: 3px solid var(--border); padding-left: .9rem; }
.mock {
  margin: 0; width: 100%; max-width: 30rem; justify-self: center;
  background: var(--surface); border: 1px solid var(--border); border-radius: 18px;
  padding: 1.25rem; box-shadow: var(--shadow);
}
.section-alt .mock { background: var(--bg); }
.mock-head {
  display: flex; align-items: center; gap: .6rem; flex-wrap: wrap;
  padding-bottom: .9rem; margin-bottom: .6rem; border-bottom: 1px solid var(--border);
  font-weight: 700;
}
.mock-head .icon { width: 34px; height: 34px; margin: 0; border-radius: 9px; }
.mock-head .icon svg { width: 18px; height: 18px; }
.mock-tag {
  margin-left: auto; padding: .35rem .55rem; border-radius: 6px;
  font: 600 .7rem/1 var(--mono); letter-spacing: .06em; text-transform: uppercase;
  color: var(--muted); background: var(--surface-2);
}
.mock-row { display: flex; align-items: center; gap: .75rem; padding: .45rem 0; font-size: .9rem; }
.mock-label { width: 6.2rem; flex: none; color: var(--muted); }
.bar { height: .7rem; border-radius: 4px; background: var(--surface-2); flex: 0 1 11rem; min-width: 0; }
.section-alt .bar { background: var(--border); }
.bar-m { flex-basis: 7rem; }
.bar-s { flex-basis: 4.5rem; }
.mock-phone {
  display: flex; align-items: center; gap: .6rem; flex-wrap: wrap;
  margin-top: .55rem; padding: .65rem .75rem;
  border: 1px solid var(--border); border-radius: 10px;
}
.mock-phone .bar { flex-basis: 6.5rem; }
.badge { font-size: .75rem; font-weight: 700; padding: .2rem .55rem; border-radius: 999px; }
.badge-dnc { background: var(--dnc-bg); color: var(--dnc-text); }
.mock-call {
  margin-left: auto; padding: .35rem .8rem; border-radius: 8px;
  font-size: .8rem; font-weight: 700; background: var(--accent); color: var(--accent-ink);
}
.mock-call.is-off { background: var(--surface-2); color: var(--muted); text-decoration: line-through; }
.mock-foot { margin: .9rem 0 0; font-size: .82rem; color: var(--muted); }

/* Reps / managers split */
.split { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); }
.split h3 { font-size: 1.4rem; }
.split .checks li { color: var(--text); }

/* Location privacy band */
.privacy-band { display: grid; gap: 2rem; align-items: start; }
@media (min-width: 900px) { .privacy-band { grid-template-columns: .85fr 1.15fr; } }
.privacy-band .checks { margin-top: 0; }

/* Closing band */
.closing { text-align: center; padding-block: clamp(3.5rem, 9vw, 6rem); }
.closing h2 { color: var(--on-navy-strong); }
.closing p { color: var(--on-navy-muted); font-size: 1.1rem; max-width: 36rem; margin-inline: auto; }
.closing .cta-row { justify-content: center; margin-bottom: 1.5rem; }
.closing .pricing { font-size: 1rem; margin-bottom: 0; }

/* ---------------------------------------------------------------- footer (navy in both schemes, so one logo file serves every page) */
.site-footer { padding-block: 2rem; border-top: 1px solid rgb(169 185 211 / .16); }
.footer-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; }
.footer-brand { display: inline-flex; flex: none; border-radius: 6px; }
.footer-brand img { display: block; height: 34px; width: auto; }
.footer-links { display: flex; flex-wrap: wrap; gap: .25rem 1.5rem; list-style: none; margin: 0; padding: 0; }
.navy .footer-links a { display: inline-block; padding: .5rem 0; color: var(--on-navy); text-decoration: none; font-weight: 600; }
.navy .footer-links a:hover { color: var(--on-navy-strong); text-decoration: underline; }
.copyright { margin: 0; color: var(--on-navy-muted); font-size: .9rem; }

/* ---------------------------------------------------------------- support + legal pages */
.page-head { padding-block: clamp(2.25rem, 6vw, 3.5rem); }
.page-head h1 { color: var(--on-navy-strong); margin-bottom: .35em; }
.page-head p { color: var(--on-navy-muted); font-size: 1.1rem; max-width: 40rem; margin: 0; }

.doc { max-width: 48rem; padding-block: clamp(2rem, 6vw, 3rem) 4rem; }
.doc h2 { font-size: 1.45rem; margin-top: 2.4rem; padding-top: 1.4rem; border-top: 1px solid var(--border); }
.doc h3 { margin-top: 1.6rem; }
.doc li { margin-bottom: .45em; }
.doc-meta { color: var(--muted); }
.toc { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 1rem 1.25rem; margin: 1.5rem 0; }
.toc h2 { font-size: 1rem; margin: 0 0 .5rem; padding: 0; border: 0; }
.toc ol { margin: 0; columns: 2 14rem; column-gap: 2rem; }
.toc li { margin-bottom: .3em; break-inside: avoid; }

.draft-banner {
  background: var(--warn-bg); color: var(--warn-text);
  border-bottom: 3px solid var(--warn-border);
  padding-block: .85rem; font-size: .98rem;
}
.draft-banner p { margin: 0; }
.draft-banner strong { font-size: 1.05rem; }
mark.todo {
  background: var(--warn-bg); color: var(--warn-text);
  padding: .05em .3em; border-radius: 4px; font-weight: 600;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}

.table-wrap { overflow-x: auto; margin: 1rem 0 1.5rem; border: 1px solid var(--border); border-radius: 10px; }
table { border-collapse: collapse; width: 100%; min-width: 34rem; font-size: .95rem; }
caption { text-align: left; padding: .75rem .85rem 0; font-weight: 700; }
th, td { text-align: left; vertical-align: top; padding: .65rem .85rem; border-bottom: 1px solid var(--border); }
thead th { background: var(--surface-2); }
tbody th { font-weight: 600; }
tbody tr:last-child > * { border-bottom: 0; }

.contact-card {
  display: grid; gap: .35rem; margin: 1.5rem 0 2rem; padding: 1.35rem 1.5rem;
  background: var(--surface); border: 1px solid var(--border); border-left: 4px solid var(--accent);
  border-radius: 12px;
}
.contact-card p { margin: 0; color: var(--muted); }
.contact-card .email { font-size: 1.3rem; font-weight: 800; letter-spacing: -.01em; word-break: break-word; }

.faq { display: grid; gap: .75rem; margin-top: 1.25rem; }
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; }
.faq summary {
  position: relative; cursor: pointer; list-style: none;
  min-height: 48px; padding: 1rem 3rem 1rem 1.15rem; border-radius: 12px; font-weight: 700;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 1.1rem; top: 50%; transform: translateY(-50%);
  font-size: 1.5rem; font-weight: 400; line-height: 1; color: var(--accent-text);
}
.faq details[open] summary::after { content: "\2212"; }
.faq .answer { padding: 0 1.15rem 1.1rem; }
.faq .answer p:last-child, .faq .answer ul:last-child { margin-bottom: 0; }
kbd, .path { font: 600 .9em var(--mono); background: var(--surface-2); border: 1px solid var(--border); border-radius: 5px; padding: .05em .35em; }

.support-cta { margin-top: 3rem; padding: 1.5rem; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.support-cta p { color: var(--muted); }

/* ---------------------------------------------------------------- motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .pulse { animation: none; opacity: .3; }
  .btn { transition: none; }
}

/* ---------------------------------------------------------------- print (legal drafts get printed for review) */
@media print {
  .site-header, .site-footer, .skip-link { display: none; }
  body { background: #fff; color: #000; }
  mark.todo { background: #ffe8a3; color: #000; }
}
