/* ScopePilot marketing site.
   Theme tokens are copied verbatim from scopepilot.html so the site and the
   builder cannot drift apart visually. Change them in both places or neither. */
:root {
  --ink: #16201c;
  --muted: #64716b;
  --line: #dfe5df;
  --paper: #fbfcfa;
  --cream: #f1f4ee;
  --panel: #ffffff;
  --green: #155b45;
  --green-dark: #0d4534;
  --lime: #c8f36a;
  --coral: #f0785c;
  --yellow: #f7d97b;
  --shadow: 0 18px 45px rgba(24, 42, 32, .10);
  --radius: 16px;
  --header-height: 66px;
}

* { box-sizing: border-box; }
/* .button sets display:inline-flex, which beats the UA stylesheet's
   [hidden] { display: none }. Without this, the signed-in and signed-out
   header buttons render at the same time. */
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
/* Anchored sections must clear the sticky header or the heading hides under it. */
html { scroll-padding-top: calc(var(--header-height) + 18px); }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
img, svg { max-width: 100%; }
a { color: var(--green); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4, p { margin-top: 0; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 clamp(18px, 4vw, 32px); }
.narrow { max-width: 760px; }

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 60;
  background: var(--green-dark); color: white; padding: 10px 14px; border-radius: 9px;
  font-weight: 700; font-size: 14px; transition: top .18s;
}
.skip-link:focus { top: 12px; text-decoration: none; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(241, 244, 238, .82);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s;
}
.site-header.is-stuck { border-bottom-color: var(--line); box-shadow: 0 6px 20px rgba(24, 42, 32, .05); }
.header-inner { height: var(--header-height); display: flex; align-items: center; gap: 22px; }

.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 800; font-size: 18px; letter-spacing: -.5px; }
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 28px; height: 28px; border-radius: 9px; background: var(--lime); color: var(--green-dark);
  display: grid; place-items: center; font-size: 16px; font-weight: 900; transform: rotate(-8deg);
  flex: none;
}

.site-nav { display: flex; align-items: center; gap: 4px; margin-left: 8px; }
.site-nav a {
  color: #47554d; font-weight: 650; font-size: 14px; padding: 8px 11px; border-radius: 8px;
  transition: background .15s, color .15s;
}
.site-nav a:hover { background: rgba(21, 91, 69, .07); color: var(--green-dark); text-decoration: none; }
.site-nav a[aria-current="page"] { color: var(--green-dark); background: rgba(21, 91, 69, .09); }

.header-actions { margin-left: auto; display: flex; align-items: center; gap: 9px; }
.nav-toggle {
  display: none; margin-left: auto; background: white; border: 1px solid var(--line);
  border-radius: 9px; width: 40px; height: 38px; align-items: center; justify-content: center;
}
.nav-toggle span { display: block; width: 17px; height: 2px; background: var(--ink); position: relative; }
.nav-toggle span::before, .nav-toggle span::after {
  content: ""; position: absolute; left: 0; width: 17px; height: 2px; background: var(--ink);
}
.nav-toggle span::before { top: -5px; }
.nav-toggle span::after { top: 5px; }

/* ---------- Buttons ---------- */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  border: 1px solid var(--line); background: white; color: var(--ink);
  border-radius: 10px; padding: 11px 15px; font-weight: 740; font-size: 14px;
  transition: transform .15s, box-shadow .15s, background .15s, border-color .15s;
  white-space: nowrap;
}
.button:hover { transform: translateY(-1px); box-shadow: 0 8px 18px rgba(24, 42, 32, .10); text-decoration: none; }
.button:active { transform: translateY(0); }
.button.primary { background: var(--green); color: white; border-color: var(--green); }
.button.primary:hover { background: var(--green-dark); border-color: var(--green-dark); }
.button.lime { background: var(--lime); border-color: var(--lime); color: var(--green-dark); }
.button.lime:hover { background: #bced54; border-color: #bced54; }
.button.ghost { background: transparent; border-color: transparent; color: var(--green); }
.button.ghost:hover { background: rgba(21, 91, 69, .07); box-shadow: none; }
.button.large { padding: 14px 21px; font-size: 15px; border-radius: 11px; }
.button.on-dark { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .22); color: #edf7f0; }
.button.on-dark:hover { background: rgba(255, 255, 255, .17); }

/* ---------- Generic section furniture ---------- */
.section { padding: clamp(56px, 8vw, 104px) 0; }
.section.tight { padding: clamp(40px, 5vw, 64px) 0; }
.section-head { max-width: 660px; margin-bottom: 40px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.eyebrow {
  margin: 0 0 9px; font-size: 11px; color: var(--green); text-transform: uppercase;
  letter-spacing: 1.1px; font-weight: 800;
}
h1 { font-size: clamp(34px, 5.4vw, 60px); line-height: 1.04; letter-spacing: -2.2px; margin-bottom: 18px; }
h2 { font-size: clamp(25px, 3.4vw, 38px); line-height: 1.12; letter-spacing: -1.3px; margin-bottom: 12px; }
h3 { font-size: 17px; letter-spacing: -.4px; margin-bottom: 7px; }
.lede { color: var(--muted); font-size: clamp(16px, 1.6vw, 18px); max-width: 620px; margin: 0; }
.lede.center { margin-left: auto; margin-right: auto; }

.card {
  border: 1px solid var(--line); background: var(--panel); border-radius: var(--radius);
  padding: 24px; box-shadow: 0 5px 16px rgba(18, 36, 25, .035);
}
.grid { display: grid; gap: 18px; }
.grid.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  background: #e8efe9; color: var(--green-dark); border: 1px solid #d7e2d9; border-radius: 999px;
  padding: 7px 13px; font-size: 12.5px; font-weight: 750;
}

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(48px, 7vw, 92px) 0 clamp(52px, 7vw, 96px); }
.hero::before {
  content: ""; position: absolute; width: 620px; height: 620px; border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(200, 243, 106, .55), rgba(200, 243, 106, 0) 68%);
  top: -280px; right: -170px; pointer-events: none;
}
.hero::after {
  content: ""; position: absolute; width: 460px; height: 460px; border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, rgba(21, 91, 69, .10), rgba(21, 91, 69, 0) 70%);
  bottom: -290px; left: -160px; pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr); gap: clamp(28px, 5vw, 56px); align-items: center; }
.hero-copy { max-width: 620px; }
.hero h1 { max-width: 15ch; }
.announce {
  display: inline-flex; align-items: center; gap: 9px; background: white; border: 1px solid var(--line);
  border-radius: 999px; padding: 6px 14px 6px 7px; font-size: 13px; font-weight: 680; color: #40504a;
  margin-bottom: 22px; box-shadow: 0 3px 10px rgba(24, 42, 32, .05);
}
.announce b {
  background: var(--lime); color: var(--green-dark); border-radius: 999px; padding: 3px 9px;
  font-size: 11px; font-weight: 850; letter-spacing: .4px; text-transform: uppercase;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 11px; margin: 28px 0 16px; }
.hero-note { color: var(--muted); font-size: 13.5px; margin: 0; display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.hero-note .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); display: inline-block; flex: none; }

/* Proposal mockup in the hero — a flat echo of the builder's live preview. */
.mock {
  background: var(--paper); border-radius: 14px; box-shadow: var(--shadow); padding: clamp(22px, 3vw, 34px);
  position: relative; overflow: hidden; transform: rotate(1deg); border: 1px solid #e6ece5;
}
.mock::after {
  content: ""; width: 230px; height: 230px; position: absolute; border-radius: 50%;
  right: -110px; top: -100px; background: var(--lime); opacity: .42;
}
.mock > * { position: relative; z-index: 1; }
.mock-head { display: flex; justify-content: space-between; gap: 16px; padding-bottom: 20px; border-bottom: 2px solid #dce6db; }
.mock-logo { font-size: 15px; font-weight: 850; letter-spacing: -.5px; color: var(--green-dark); }
.mock-logo span { color: #57836d; font-weight: 600; }
.mock-meta { text-align: right; color: #63746a; font-size: 11px; }
.mock-meta strong { display: block; color: var(--ink); font-size: 12px; }
.mock-kicker { color: var(--green); letter-spacing: 1px; font-size: 9.5px; font-weight: 850; text-transform: uppercase; margin-top: 22px; }
.mock-title { font-size: clamp(19px, 2.2vw, 25px); letter-spacing: -1px; line-height: 1.08; margin: 7px 0 14px; }
.mock-rows { display: grid; gap: 0; margin-bottom: 16px; }
.mock-row { display: flex; justify-content: space-between; gap: 14px; padding: 9px 0; border-top: 1px solid #e2e8e2; font-size: 12.5px; }
.mock-row b { font-weight: 720; color: #253229; }
.mock-total { margin-left: auto; width: min(230px, 100%); border-top: 2px solid var(--green); padding-top: 9px; }
.mock-total .line { display: flex; justify-content: space-between; color: #59685f; font-size: 12px; margin: 4px 0; }
.mock-total .line.grand { color: var(--green-dark); font-size: 17px; font-weight: 850; margin-top: 8px; }
.mock-terms { background: #e9f1e8; border-left: 3px solid var(--green); padding: 11px 13px; margin-top: 20px; font-size: 11.5px; color: #44584b; }
.mock-terms strong { display: block; color: var(--green-dark); font-size: 11.5px; margin-bottom: 2px; }

/* ---------- Proof strip ---------- */
.proof { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: rgba(255, 255, 255, .55); }
.proof-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; padding: 30px 0; }
.proof-item strong { display: block; font-size: clamp(22px, 2.6vw, 30px); letter-spacing: -1.2px; line-height: 1.1; }
.proof-item span { color: var(--muted); font-size: 12.5px; font-weight: 650; }

/* ---------- Numbered steps ---------- */
.step { position: relative; padding-top: 6px; }
.step-number {
  color: var(--green); font-weight: 850; font-size: 12px; letter-spacing: 1.2px;
  display: block; margin-bottom: 11px;
}
.step p { color: var(--muted); font-size: 14.5px; margin: 0; }

/* ---------- Feature cards ---------- */
.feature { display: flex; flex-direction: column; gap: 11px; }
.feature-icon {
  width: 38px; height: 38px; border-radius: 11px; background: #e9f1e8; color: var(--green);
  display: grid; place-items: center; font-size: 17px; flex: none;
}
.feature p { color: var(--muted); font-size: 14px; margin: 0; }
.feature.pro .feature-icon { background: rgba(200, 243, 106, .35); color: var(--green-dark); }
.badge-pro {
  display: inline-block; background: var(--lime); color: var(--green-dark); border-radius: 999px;
  padding: 2px 8px; font-size: 10px; font-weight: 850; letter-spacing: .6px; text-transform: uppercase;
  vertical-align: 2px; margin-left: 7px;
}

/* ---------- Split feature rows ---------- */
.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(26px, 5vw, 60px); align-items: center; }
.split + .split { margin-top: clamp(48px, 7vw, 86px); }
.split.flip .split-visual { order: -1; }
.split-list { display: grid; gap: 12px; margin: 22px 0 0; padding: 0; list-style: none; }
.split-list li { display: flex; gap: 10px; align-items: baseline; color: #405048; font-size: 14.5px; }
.check { color: var(--green); font-weight: 900; flex: none; }
.split-visual { background: #dfe7df; border-radius: 18px; padding: clamp(16px, 2.5vw, 24px); }

/* ---------- Pricing ---------- */
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; max-width: 880px; margin: 0 auto; align-items: start; }
.plan { position: relative; display: flex; flex-direction: column; height: 100%; }
.plan.featured { border-color: var(--green); box-shadow: 0 16px 40px rgba(21, 91, 69, .14); }
.plan-flag {
  position: absolute; top: -12px; left: 24px; background: var(--green); color: white;
  border-radius: 999px; padding: 4px 12px; font-size: 10.5px; font-weight: 850;
  letter-spacing: .7px; text-transform: uppercase;
}
.plan-name { font-size: 15px; font-weight: 800; letter-spacing: -.3px; margin-bottom: 4px; }
.plan-blurb { color: var(--muted); font-size: 13.5px; margin: 0 0 18px; }
.plan-price { display: flex; align-items: baseline; gap: 7px; margin-bottom: 20px; }
.plan-price strong { font-size: 44px; letter-spacing: -2.4px; line-height: 1; color: var(--green-dark); font-weight: 850; }
.plan-price span { color: var(--muted); font-size: 13.5px; font-weight: 650; }
.plan ul { list-style: none; padding: 0; margin: 0 0 22px; display: grid; gap: 10px; }
.plan li { display: flex; gap: 10px; align-items: baseline; font-size: 14px; color: #405048; }
.plan li.off { color: #9aa6a0; }
.plan li.off .check { color: #c3ccc6; }
.plan .button { margin-top: auto; width: 100%; }
.plan-footnote { color: var(--muted); font-size: 12px; margin: 12px 0 0; text-align: center; }

.compare { width: 100%; border-collapse: collapse; font-size: 14px; }
.compare th, .compare td { text-align: left; padding: 13px 14px; border-bottom: 1px solid var(--line); }
.compare thead th { font-size: 11px; text-transform: uppercase; letter-spacing: .8px; color: #617268; border-bottom-width: 2px; }
.compare th:not(:first-child), .compare td:not(:first-child) { text-align: center; width: 132px; }
.compare tbody th { font-weight: 650; color: #2c3a33; }
.compare .yes { color: var(--green); font-weight: 900; }
.compare .no { color: #c3ccc6; font-weight: 900; }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 10px; max-width: 800px; }
.faq details {
  background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 0 18px;
  transition: border-color .15s, box-shadow .15s;
}
.faq details[open] { border-color: #c9d6cc; box-shadow: 0 6px 18px rgba(24, 42, 32, .05); }
.faq summary {
  cursor: pointer; padding: 16px 0; font-weight: 720; font-size: 15px; list-style: none;
  display: flex; justify-content: space-between; gap: 16px; align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; color: var(--green); font-size: 20px; font-weight: 700; line-height: 1; flex: none;
  transition: transform .2s;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .faq-body { padding: 0 0 18px; color: var(--muted); font-size: 14.5px; }
.faq .faq-body p { margin: 0 0 10px; }
.faq .faq-body p:last-child { margin-bottom: 0; }

/* ---------- Dark CTA band ---------- */
.cta-band { background: var(--green-dark); color: #edf7f0; position: relative; overflow: hidden; }
.cta-band::after {
  content: ""; position: absolute; width: 420px; height: 420px; border-radius: 50%;
  background: radial-gradient(circle, rgba(200, 243, 106, .20), rgba(200, 243, 106, 0) 70%);
  right: -120px; bottom: -220px;
}
.cta-band .wrap { position: relative; z-index: 1; text-align: center; padding-top: clamp(52px, 7vw, 84px); padding-bottom: clamp(52px, 7vw, 84px); }
.cta-band h2 { color: white; max-width: 22ch; margin-left: auto; margin-right: auto; }
.cta-band p { color: #b6cdc0; max-width: 520px; margin: 0 auto 26px; }
.cta-band .hero-actions { justify-content: center; margin-bottom: 0; }

/* ---------- Prose (legal pages) ---------- */
.prose { max-width: 760px; }
.prose h2 { font-size: 22px; letter-spacing: -.7px; margin: 38px 0 10px; }
.prose h3 { font-size: 16px; margin: 24px 0 6px; }
.prose p, .prose li { color: #40504a; font-size: 15px; }
.prose ul, .prose ol { padding-left: 22px; display: grid; gap: 7px; }
.prose .updated { color: var(--muted); font-size: 13px; margin-bottom: 30px; }
.prose .callout {
  background: #e9f1e8; border-left: 3px solid var(--green); padding: 14px 16px; border-radius: 0 10px 10px 0;
  margin: 22px 0;
}
.prose .callout p { margin: 0; font-size: 14px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--green-dark); color: #b6cdc0; padding: clamp(44px, 6vw, 68px) 0 28px; }
.site-footer a { color: #d6e4dc; font-size: 14px; }
.site-footer a:hover { color: white; }
.footer-top { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 32px; }
.footer-brand .brand { color: white; margin-bottom: 12px; }
.footer-brand p { color: #a9c2b4; font-size: 13.5px; max-width: 280px; margin: 0; }
.footer-col h4 {
  color: white; font-size: 11px; text-transform: uppercase; letter-spacing: 1.1px;
  margin-bottom: 13px; font-weight: 800;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.footer-bottom {
  margin-top: 38px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .12);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  color: #8fab9c; font-size: 12.5px;
}
.footer-bottom .test-flag { color: var(--yellow); font-weight: 700; }

/* ---------- Status / 404 ---------- */
.center-panel { min-height: 62vh; display: grid; place-items: center; text-align: center; padding: 60px 0; }
.center-panel .code {
  font-size: clamp(64px, 12vw, 120px); font-weight: 850; letter-spacing: -5px; line-height: 1;
  color: var(--green-dark); margin-bottom: 10px;
}

/* ---------- Scroll reveal ---------- */
/* Content is only hidden once site.js has marked the page as able to reveal
   it again. With JavaScript off (or failing), everything simply shows. */
.reveal-ready .reveal { opacity: 0; transform: translateY(18px); transition: opacity .55s ease, transform .55s ease; }
.reveal-ready .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .reveal-ready .reveal { opacity: 1; transform: none; transition: none; }
  .button:hover { transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { max-width: 520px; }
  .mock { transform: none; }
  .split, .split.flip .split-visual { grid-template-columns: 1fr; order: 0; }
  .grid.cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-top { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 820px) {
  .nav-toggle { display: flex; }
  .site-nav, .header-actions { display: none; }
  .site-header.nav-open .site-nav,
  .site-header.nav-open .header-actions {
    display: flex; flex-direction: column; align-items: stretch; width: 100%; margin: 0; gap: 4px;
  }
  .site-header.nav-open .header-inner {
    flex-wrap: wrap; height: auto; padding-bottom: 16px; align-items: flex-start;
  }
  .site-header.nav-open .site-nav { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 12px; }
  .site-header.nav-open .site-nav a { padding: 11px; font-size: 15px; }
  .site-header.nav-open .header-actions { margin-top: 8px; }
  .site-header.nav-open .header-actions .button { width: 100%; }
  .proof-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
  .plans { grid-template-columns: 1fr; }
  .plan.featured { order: -1; }
}
@media (max-width: 560px) {
  .grid.cols-2, .grid.cols-3, .grid.cols-4 { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: 26px; }
  .hero-actions .button { width: 100%; }
}
