/* Cost Plus Software storefront — the one landing page.
 *
 * This is no longer the scaffolded foundation stylesheet. The landing page
 * was redesigned (Claude Design "Cost Plus Software landing") and it is the
 * ONLY page this app serves, so the shared .hero/.features/.plans vocabulary
 * that came from scaffold_foundation_workspaces.py went with the pages that
 * used it. What survives from it is the chrome the design kept: .nav, .btn
 * and .footer.
 *
 * Every rule the landing page owns is named `cps-`. A change that should
 * reach every storefront does NOT belong in this file — it belongs upstream
 * in the scaffolder plus a cross_business_patch (businesses/AGENTS.md §1).
 *
 * NO EXTERNAL REQUESTS. The design loaded DM Sans, Instrument Serif and
 * JetBrains Mono from Google Fonts; a storefront page is allowed zero
 * external <link href>, so the LATIN faces are self-hosted in ../fonts (SIL
 * OFL, licences alongside) and every other unicode range is dropped. DM Sans
 * and JetBrains Mono ship as ONE variable file each — the handoff pointed
 * all of their weights at the same latin woff2 — so their @font-face
 * declares a weight RANGE rather than one weight per file.
 *
 * RESPONSIVE. The artboard was a fixed 1280 with no breakpoints. Every
 * two-column grid here collapses to one below 860px and the price table
 * scrolls inside its own box, so nothing scrolls the page sideways at 390.
 */

/* ── Fonts ─────────────────────────────────────────────────────────── */
@font-face { font-family: 'DM Sans'; font-style: normal; font-weight: 400 600;
             font-display: swap; src: url("/static/fonts/DMSans-Variable.woff2") format('woff2'); }
@font-face { font-family: 'Instrument Serif'; font-style: normal; font-weight: 400;
             font-display: swap; src: url("/static/fonts/InstrumentSerif-Regular.woff2") format('woff2'); }
@font-face { font-family: 'Instrument Serif'; font-style: italic; font-weight: 400;
             font-display: swap; src: url("/static/fonts/InstrumentSerif-Italic.woff2") format('woff2'); }
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 400 700;
             font-display: swap; src: url("/static/fonts/JetBrainsMono-Variable.woff2") format('woff2'); }

* { margin: 0; padding: 0; box-sizing: border-box; }
:root {
  --ink: #17181c; --paper: #fcfbf7; --card: #ffffff;
  --muted: #6b6c70; --body: #3d3e44; --hair: #c9c8c2;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --serif: 'Instrument Serif', Georgia, 'Times New Roman', serif;
  --sans: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --gutter: clamp(20px, 4vw, 56px);
}
body { font-family: var(--mono); color: var(--ink); background: var(--paper);
       line-height: 1.6; overflow-x: hidden; }
main, .nav-inner, .footer-inner { max-width: 1200px; margin: 0 auto; }
a { color: inherit; text-decoration: none; }
a:hover { opacity: .75; }
em { font-style: italic; }

/* ── Chrome kept from the scaffold ─────────────────────────────────── */
.nav { border-bottom: 1px solid var(--ink); background: var(--paper); }
.nav-inner { display: flex; align-items: center; justify-content: space-between;
             gap: 16px; flex-wrap: wrap; padding: 18px var(--gutter);
             font-size: 13px; }
.nav-brand { font-family: var(--serif); font-size: 24px; line-height: 1.1; }
.nav-links { display: flex; gap: clamp(12px, 2.4vw, 32px); align-items: center;
             flex-wrap: wrap; }
.btn { display: inline-block; background: var(--ink); color: var(--paper);
       border: 1px solid var(--ink); padding: 10px 20px; font: inherit;
       cursor: pointer; }
.btn-sm { background: transparent; color: var(--ink); padding: 8px 16px; }
.btn-sm:hover { background: var(--ink); color: var(--paper); opacity: 1; }
.footer { border-top: 1px solid var(--ink); }
.footer-inner { display: flex; justify-content: space-between; gap: 16px;
                flex-wrap: wrap; padding: 22px var(--gutter);
                font-size: 12px; color: var(--muted); }

/* ── Shared landing vocabulary ─────────────────────────────────────── */
.cps-kicker { font-size: 12px; letter-spacing: .12em; text-transform: uppercase;
              color: var(--muted); margin-bottom: 10px; }
.cps-muted { color: var(--muted); font-size: 12px; }
.cps-strong { font-weight: 700; }
.cps-figure { font-family: var(--serif); font-size: clamp(32px, 4vw, 40px);
              line-height: 1.1; }
.cps-prose { font-family: var(--sans); font-size: 16px; line-height: 1.7;
             color: var(--body); }
.cps-btn { display: inline-block; background: var(--ink); color: var(--paper);
           padding: 16px 26px; font-size: 14px; }
.cps-btn:hover { opacity: .85; }
.cps-link { padding: 16px 8px; font-size: 14px; text-decoration: underline;
            text-underline-offset: 4px; }

.cps-band { display: grid; grid-template-columns: minmax(200px, 320px) minmax(0, 1fr);
            gap: clamp(28px, 4vw, 64px); padding: clamp(48px, 7vw, 80px) var(--gutter);
            border-bottom: 1px solid var(--ink); }
.cps-band h2 { font-family: var(--serif); font-weight: 400;
               font-size: clamp(32px, 4.4vw, 44px); line-height: 1.05; }
.cps-side p.cps-prose { margin-top: 18px; }
.cps-side h2 + .cps-prose { margin-top: 18px; }

/* ── Hero ──────────────────────────────────────────────────────────── */
.cps-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 480px);
            gap: clamp(32px, 5vw, 72px);
            padding: clamp(48px, 7vw, 88px) var(--gutter) clamp(48px, 6vw, 72px);
            border-bottom: 1px solid var(--ink); align-items: start; }
.cps-hero h1 { font-family: var(--serif); font-weight: 400;
               font-size: clamp(44px, 7vw, 88px); line-height: .98;
               letter-spacing: -.02em; margin: 0 0 32px; }
.cps-hero .cps-kicker { margin-bottom: 28px; }
.cps-deck { font-family: var(--sans); font-size: 18px; line-height: 1.6;
            color: var(--body); max-width: 480px; margin-bottom: 40px; }
.cps-cta-row { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }

.cps-quote { background: var(--card); border: 1px solid var(--ink); padding: 32px;
             font-size: 13px; box-shadow: 12px 12px 0 var(--ink);
             margin-right: 12px; min-width: 0; }
.cps-quote-head { display: flex; justify-content: space-between; gap: 12px;
                  border-bottom: 1px dashed var(--ink); padding-bottom: 14px;
                  margin-bottom: 18px; }
.cps-quote-lines { display: grid; grid-template-columns: 1fr auto; row-gap: 10px; }
.cps-quote-lines dd { text-align: right; }
.cps-quote-split { border-top: 1px dashed var(--ink); margin: 18px 0;
                   padding-top: 14px; }
.cps-quote-total { border-top: 2px solid var(--ink); padding-top: 16px;
                   display: flex; justify-content: space-between;
                   align-items: baseline; gap: 12px; font-size: 14px; }
.cps-quote-note { margin-top: 18px; color: var(--muted); font-size: 11px;
                  line-height: 1.6; }

/* ── The three numbers ─────────────────────────────────────────────── */
.cps-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
             border-bottom: 1px solid var(--ink); }
.cps-stat { padding: 36px var(--gutter); border-right: 1px solid var(--ink); }
.cps-stat:last-child { border-right: 0; }
.cps-stat .cps-figure { margin-bottom: 6px; }

/* ── How it works ──────────────────────────────────────────────────── */
.cps-steps { list-style: none; display: grid;
             grid-template-columns: repeat(auto-fit, minmax(100px, 1fr)); gap: 10px; }
.cps-step { border: 1px solid var(--ink); padding: 16px 14px; font-size: 12px;
            display: flex; flex-direction: column; gap: 2px; }
.cps-step-n, .cps-step-gloss { color: var(--muted); }
.cps-step.is-yours { background: var(--ink); color: var(--paper); }
.cps-step.is-yours .cps-step-n, .cps-step.is-yours .cps-step-gloss { color: inherit; opacity: .6; }
.cps-steps + .cps-prose { margin-top: 24px; }

/* ── What we build ─────────────────────────────────────────────────── */
.cps-tiers { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cps-tier { border: 1px solid var(--ink); padding: 24px; }
.cps-tier.is-ink { background: var(--ink); color: var(--paper); }
.cps-tier.is-ink .cps-kicker { color: inherit; opacity: .6; }
.cps-chips { display: flex; flex-wrap: wrap; gap: 8px; font-size: 13px; }
.cps-chip { border: 1px solid currentColor; padding: 6px 10px; }

/* ── Prices ────────────────────────────────────────────────────────── */
.cps-table-scroll { overflow-x: auto; }
.cps-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.cps-table th { font-weight: 400; font-size: 11px; letter-spacing: .1em;
                text-transform: uppercase; color: var(--muted);
                text-align: left; padding: 10px 12px 10px 0;
                border-bottom: 1px solid var(--ink); }
.cps-table td { padding: 12px 12px 12px 0; border-bottom: 1px dashed var(--hair);
                vertical-align: top; }
.cps-table tr:last-child td { border-bottom: 1px solid var(--ink); }
.cps-call { color: var(--body); }
.cps-right { text-align: right; white-space: nowrap; padding-right: 0 !important; }
.cps-note { margin-top: 16px; font-size: 14px; }
.cps-snippet { margin-top: 20px; background: var(--ink); color: var(--paper);
               padding: 20px; font-family: var(--mono); font-size: 12px;
               line-height: 1.6; overflow-x: auto; white-space: pre; }

/* ── FAQ ───────────────────────────────────────────────────────────── */
.cps-faq-item { padding: 20px 0; border-bottom: 1px dashed var(--hair); }
.cps-faq-item:last-child { border-bottom: 0; }
.cps-faq-q { font-family: var(--sans); font-weight: 600; font-size: 16px;
             margin-bottom: 6px; }

/* ── Close ─────────────────────────────────────────────────────────── */
.cps-close { padding: clamp(56px, 8vw, 96px) var(--gutter); text-align: center; }
.cps-close h2 { font-family: var(--serif); font-weight: 400;
                font-size: clamp(40px, 7vw, 64px); line-height: 1;
                margin-bottom: 28px; }

/* ── Narrow ────────────────────────────────────────────────────────── */
@media (max-width: 860px) {
  .cps-hero, .cps-band { grid-template-columns: minmax(0, 1fr); }
  .cps-quote { margin-right: 0; box-shadow: 8px 8px 0 var(--ink); padding: 24px; }
  .cps-tiers { grid-template-columns: minmax(0, 1fr); }
  .cps-stat { border-right: 0; border-bottom: 1px solid var(--hair); }
  .cps-stat:last-child { border-bottom: 0; }
}
@media (max-width: 520px) {
  .nav-inner { font-size: 12px; }
  .cps-quote { box-shadow: 6px 6px 0 var(--ink); }
}

/* Nothing on this page animates; the transitions here are hover-only, and a
   visitor who asks for no motion gets none. */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important;
      scroll-behavior: auto !important; }
}

/* ── The colophon (helpers_business_colophon): the platform-served badge every
   business's footer carries — logo or mark, name, tasks done, streak, the
   StaffParty number. One tag; nothing to keep in sync. ────────────────── */
.sp-colophon { display: inline-block; line-height: 0; flex: none; margin-left: auto; }
.sp-colophon img { height: 58px; width: auto; display: block; }
.footer-inner { align-items: flex-end; flex-wrap: wrap; }

/* ── early-access form (templates/_join.html) ─────────────────────────────
   Added by the 2026-10 landing audit: StaffParty is in private beta, so the
   hero takes an address to /join instead of a "Start a business" button that
   opened the sign-in page. Colours come from this sheet's own tokens. */
.sp-join { display: flex; flex-wrap: wrap; gap: 8px; max-width: 480px; margin: 24px 0 0; }
.sp-join input { flex: 1 1 220px; min-width: 0; padding: 12px 14px; font: inherit;
  font-size: 15px; color: var(--ink); background: #fff; border: 1px solid var(--ink);
  border-radius: 6px; }
.sp-join input::placeholder { color: #6b6b6b; }
.sp-join input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.sp-join button { cursor: pointer; border: 0; font: inherit; }
.sp-join-note, .sp-join-signin { margin: 10px 0 0; font-size: 14px; max-width: 480px; }
.sp-join-signin a { text-decoration: underline; text-underline-offset: 3px; }
.sp-join-center { margin-left: auto; margin-right: auto; justify-content: center;
  text-align: center; }
.cps-agents-label { margin: 28px 0 0; }

/* Phone nav (2026-10 landing audit): at 390px the section links wrapped to
   two or three rows above the hero. A phone gets the brand and the one
   button; the sections are a scroll away. */
@media (max-width: 600px) {
  .nav-links a:not(.btn):not(.bn-signin) { display: none; }
  .nav-inner { flex-wrap: nowrap; flex-direction: row; align-items: center;
               justify-content: space-between; }
}
