/*
 * steadystatecrew.com marketing site (server/marketing/, landing/README.md). The pages carry no inline style and no
 * style attribute, so every rule lives here. Tokens copied from client/src/index.css (brand spec
 * docs/superpowers/specs/2026-11-15-steadystate-crew-brand.md): navy is the one hue, no shadows, no gradients,
 * 4px touch corners, serif headlines on front-door pages, self-hosted fonts (SIL OFL, see fonts/OFL.txt).
 */
@font-face {
  font-family: "Public Sans";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("/assets/fonts/public-sans-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Public Sans";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("/assets/fonts/public-sans-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Source Serif 4";
  font-style: normal;
  font-display: swap;
  font-weight: 200 900;
  src: url("/assets/fonts/source-serif-4-latin-ext-opsz-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Source Serif 4";
  font-style: normal;
  font-display: swap;
  font-weight: 200 900;
  src: url("/assets/fonts/source-serif-4-latin-opsz-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Size-adjusted fallbacks so text barely shifts when the web fonts swap in (less layout shift, CLS).
 * Measured in Chromium against Arial/Times New Roman metrics (Liberation equivalents): see landing/README.md. */
@font-face {
  font-family: "Public Sans Fallback";
  src: local("Arial"), local("Liberation Sans"), local("Arimo");
  size-adjust: 104.9%;
  ascent-override: 90.6%;
  descent-override: 21.9%;
  line-gap-override: 0%;
}
@font-face {
  font-family: "Source Serif 4 Fallback";
  src: local("Times New Roman"), local("Liberation Serif"), local("Tinos");
  size-adjust: 100.6%;
  ascent-override: 103.4%;
  descent-override: 33.8%;
  line-gap-override: 0%;
}

:root {
  --paper: #FFFFFF;
  --sunken: #F3F5F7;
  --rule: #C8CDD3;
  --rule-soft: #E0E4E8;
  --ink: #1F262D;
  --ink-2: #4A545E;
  --mute: #5E6A77;
  --navy: #163A55;
  --navy-hover: #0F2A3E;
  --navy-tint: #DAE5EE;
  --radius-touch: 4px;
  --font-sans: "Public Sans", "Public Sans Fallback", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  --font-serif: "Source Serif 4", "Source Serif 4 Fallback", Georgia, "Times New Roman", serif;
  --t-color: color 160ms ease-out, background-color 160ms ease-out, border-color 160ms ease-out, text-decoration-color 160ms ease-out;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.55;
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
}

:focus-visible { outline: 3px solid var(--navy); outline-offset: 2px; }
::selection { background: var(--navy-tint); color: var(--ink); }

a { color: var(--navy); font-weight: 600; text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1.5px; transition: var(--t-color); }
a:hover { color: var(--navy-hover); }

h1, h2, h3 { margin: 0; color: var(--ink); }
p, ul, ol, dl { margin: 0; }

.skip {
  position: absolute; left: 16px; top: -100px;
  background: var(--navy); color: #FFFFFF; padding: 8px 16px; border-radius: var(--radius-touch); z-index: 10;
}
.skip:focus { top: 8px; color: #FFFFFF; }

.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 16px; }

/* Header */
.site-header { border-bottom: 1px solid var(--rule); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px; }
.lockup { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-size: 1.25rem; line-height: 1; font-weight: 400; }
.lockup:hover { color: var(--ink); }
.lockup b { font-weight: 600; }
.lockup svg { flex: none; }
.site-nav { display: flex; align-items: center; gap: 16px; }
.site-nav a.quiet { color: var(--ink-2); text-decoration: none; }
.site-nav a.quiet:hover { color: var(--ink); text-decoration: underline; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 20px;
  background: var(--navy); color: #FFFFFF; border: 1px solid var(--navy);
  border-radius: var(--radius-touch); font-weight: 600; text-decoration: none;
}
.btn:hover { background: var(--navy-hover); border-color: var(--navy-hover); color: #FFFFFF; }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 1rem; }
.btn-outline { background: var(--paper); color: var(--ink); border-color: #7D8792; }
.btn-outline:hover { background: var(--sunken); color: var(--ink); border-color: #7D8792; }

/* Sections */
main > section { padding: 48px 0; border-top: 1px solid var(--rule); }
main > section.hero { border-top: 0; padding-top: 40px; }
.serif { font-family: var(--font-serif); font-weight: 500; }
h1 { font-family: var(--font-serif); font-weight: 500; font-size: 2rem; line-height: 1.1; max-width: 26ch; }
h2 { font-family: var(--font-serif); font-weight: 500; font-size: 1.75rem; line-height: 1.2; }
h3 { font-size: 1.125rem; line-height: 1.35; font-weight: 600; }
.lead { margin-top: 16px; font-size: 1.1875rem; line-height: 1.5; color: var(--ink-2); max-width: 60ch; }
.section-intro { margin-top: 8px; color: var(--ink-2); max-width: 60ch; }
.cta-row { margin-top: 24px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.note { color: var(--mute); font-size: 0.9375rem; }
.hero .note { margin-top: 12px; max-width: 60ch; }
.hero h1 { max-width: 30ch; }
.hero .lead { max-width: 70ch; }
.audience { margin-top: 12px; font-weight: 600; color: var(--ink); }
.updated { color: var(--mute); font-size: 0.9375rem; }
.referral { color: var(--ink); }

/* Features: rules above columns, no boxes */
.features { margin-top: 24px; display: grid; gap: 28px; }
.feature { border-top: 1px solid var(--rule); padding-top: 16px; }
.feature p { margin-top: 8px; color: var(--ink-2); }

/* Steps */
.steps { margin-top: 24px; padding: 0; list-style: none; display: grid; gap: 24px; counter-reset: step; }
.steps li { border-top: 1px solid var(--rule); padding-top: 16px; }
.steps h3 { margin: 0; }
.steps p { margin-top: 8px; color: var(--ink-2); }
.step-no { color: var(--mute); font-weight: 400; }

/* Pricing */
.plans { margin-top: 24px; display: grid; gap: 16px; }
.plan { border: 1px solid var(--rule); border-radius: var(--radius-touch); padding: 20px; background: var(--paper); }
.plan h3 { font-size: 1.375rem; }
.plan .crews { margin-top: 4px; color: var(--ink-2); }
.prices { margin-top: 16px; display: grid; gap: 12px; }
.price { display: block; }
.price .amount { font-size: 1.875rem; line-height: 1.1; font-weight: 600; color: var(--ink); }
.price .per { color: var(--ink-2); }
.price .detail { display: block; color: var(--mute); font-size: 0.9375rem; }
.price + .price { border-top: 1px solid var(--rule-soft); padding-top: 12px; }
.includes { margin-top: 24px; }
.includes ul { margin-top: 8px; padding-left: 1.25em; color: var(--ink-2); }
.includes li + li { margin-top: 4px; }
.pricing-notes { margin-top: 16px; color: var(--ink-2); max-width: 70ch; }
.pricing-notes p + p { margin-top: 8px; }

/* FAQ */
.faq { margin-top: 24px; max-width: 760px; }
.faq dt { font-weight: 600; border-top: 1px solid var(--rule); padding-top: 16px; }
.faq dd { margin: 8px 0 20px; color: var(--ink-2); }

/* Proof lines, check list, screenshots */
.feature p.proof { color: var(--mute); font-size: 0.9375rem; }
.features-stack { grid-template-columns: 1fr !important; }
.pillars { margin-top: 24px; display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.pillar { border: 1px solid var(--rule); border-radius: var(--radius-touch); padding: 16px; background: var(--paper); }
.pillar h3 { font-size: 1.0625rem; }
.pillar p { margin-top: 8px; color: var(--ink-2); font-size: 0.9375rem; }
.pillar p b { color: var(--navy); font-weight: 600; }
.checks { margin-top: 24px; padding: 0; list-style: none; display: grid; gap: 12px; max-width: 760px; }
.checks li { position: relative; padding-left: 28px; color: var(--ink-2); }
.checks li::before { content: ""; position: absolute; left: 4px; top: 0.55em; width: 12px; height: 6px; border-left: 2px solid var(--navy); border-bottom: 2px solid var(--navy); transform: rotate(-45deg); }
.cta-note { margin-top: 12px; }
.shot { margin: 32px 0 0; }
.shot img { display: block; width: 100%; height: auto; border: 1px solid var(--rule); border-radius: var(--radius-touch); background: var(--sunken); }
.shot-phone { max-width: 280px; margin-left: auto; margin-right: auto; }
.split { display: grid; gap: 8px; }

/*
 * Pricing page. The plan cards, "which plan", moving and FAQ sections come from the renderer the app host's /pricing
 * also uses (server/sites/pricing-page.ts renderPricingSections), so these rules are written for its class names.
 * The annual/monthly switch is two radio inputs and :checked rules; with CSS off both prices show.
 */
.pricing-page { padding-top: 40px; padding-bottom: 48px; }
.pricing-page h1 { max-width: 24ch; }
.pricing-page .updated { margin-top: 12px; }
.pricing-page > section { padding: 32px 0; border-top: 1px solid var(--rule); }
.pricing-page > section.plans-wrap { border-top: 0; padding-top: 16px; }
.pricing-page > section > p { margin-top: 12px; color: var(--ink-2); max-width: 75ch; }
.pricing-page .promo { margin-top: 16px; padding: 12px 16px; border: 1px solid var(--navy); border-radius: var(--radius-touch); background: var(--navy-tint); }
.pricing-page .toggle-input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.pricing-page .toggle { display: inline-flex; margin: 8px 0 0; padding: 4px; border: 1px solid var(--rule); border-radius: var(--radius-touch); }
.pricing-page .toggle-label { min-height: 40px; display: inline-flex; align-items: center; padding: 0 16px; border-radius: 2px; font-weight: 600; cursor: pointer; color: var(--ink-2); }
.pricing-page #interval-annual:checked ~ .toggle label[for="interval-annual"],
.pricing-page #interval-monthly:checked ~ .toggle label[for="interval-monthly"] { background: var(--navy); color: #FFFFFF; }
.pricing-page #interval-annual:focus-visible ~ .toggle label[for="interval-annual"],
.pricing-page #interval-monthly:focus-visible ~ .toggle label[for="interval-monthly"] { outline: 3px solid var(--navy); outline-offset: 2px; }
.pricing-page .plans { margin-top: 20px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.pricing-page .tier { border: 1px solid var(--rule); border-radius: var(--radius-touch); padding: 20px; background: var(--paper); }
.pricing-page .tier h2 { font-family: var(--font-sans); font-size: 1.375rem; font-weight: 600; line-height: 1.35; }
.pricing-page .tier .crews { margin-top: 4px; color: var(--ink-2); }
.pricing-page .tier .tag { display: block; margin-top: 16px; color: var(--mute); font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; }
.pricing-page .tier .price { margin-top: 4px; font-size: 1.625rem; line-height: 1.2; font-weight: 600; color: var(--ink); }
.pricing-page .tier .note { margin-top: 4px; }
.pricing-page .tier-monthly { display: none; }
.pricing-page #interval-monthly:checked ~ .plans .tier-monthly { display: block; }
.pricing-page #interval-monthly:checked ~ .plans .tier-annual { display: none; }
.pricing-page .lock { margin-top: 24px; padding: 12px 16px; background: var(--sunken); border-radius: var(--radius-touch); color: var(--ink); }
.pricing-page .cta { margin-top: 24px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.pricing-page .compare-link { padding-bottom: 32px; }
.pricing-page .moving ul { margin-top: 12px; padding-left: 1.25em; color: var(--ink-2); max-width: 75ch; }
.pricing-page .moving li + li { margin-top: 8px; }
.pricing-page .moving li strong { color: var(--ink); }
.pricing-page section.faq { margin-top: 0; max-width: none; }
.pricing-page details { max-width: 760px; border-top: 1px solid var(--rule); padding: 14px 0; }
.pricing-page details:first-of-type { margin-top: 16px; }
.pricing-page summary { font-weight: 600; cursor: pointer; }
.pricing-page details p { margin-top: 8px; color: var(--ink-2); }

/* About page and other plain text pages */
.prose { padding-top: 40px; padding-bottom: 64px; }
.prose h1 { max-width: 30ch; }
.prose h2 { margin-top: 40px; font-size: 1.5rem; }
.prose p { margin-top: 16px; color: var(--ink-2); max-width: 70ch; }
.prose ul { margin-top: 12px; padding-left: 1.25em; color: var(--ink-2); max-width: 70ch; }
.prose li + li { margin-top: 4px; }
.prose .updated { margin-top: 32px; color: var(--mute); }
.prose h3 { margin-top: 24px; }
.prose .cta-row { margin-top: 32px; }
.prose .crumb { margin-top: 0; margin-bottom: 12px; font-size: 0.9375rem; }
.prose .link-list li + li { margin-top: 12px; }

/* Compare pages: the category table (server/sites/pricing-page.ts renderCompareTable). It scrolls sideways on a phone. */
.table-scroll { margin-top: 24px; overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.compare { border-collapse: collapse; min-width: 960px; font-size: 0.9375rem; color: var(--ink-2); }
table.compare th, table.compare td { border: 1px solid var(--rule); padding: 8px 10px; text-align: left; vertical-align: top; }
table.compare th { color: var(--ink); font-weight: 600; }
table.compare thead th { background: var(--sunken); }
table.compare tr.ours { background: var(--navy-tint); color: var(--ink); }
table.compare .note { font-weight: 400; color: var(--ink-2); }

/* Request a call: the form, its errors and the thank-you page (server/marketing/call.ts). */
.call-form { margin-top: 32px; max-width: 40rem; display: grid; gap: 24px; }
.call-form .field { display: grid; gap: 6px; margin: 0; padding: 0; border: 0; min-width: 0; }
.call-form label, .call-form legend { padding: 0; font-weight: 600; color: var(--ink); }
.call-form p { margin-top: 0; }
.call-form .hint { color: var(--mute); font-size: 0.9375rem; }
.call-form input[type="text"], .call-form input[type="tel"], .call-form input[type="email"], .call-form select, .call-form textarea {
  width: 100%; min-height: 48px; padding: 10px 12px;
  font: inherit; color: var(--ink); background: var(--paper);
  border: 1px solid #7D8792; border-radius: var(--radius-touch);
}
.call-form textarea { min-height: 112px; resize: vertical; }
.call-form [aria-invalid="true"] { border-color: #A12B2B; border-width: 2px; }
.call-form .choices { display: flex; flex-wrap: wrap; gap: 4px 24px; }
.call-form .choice { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; }
.call-form .choice input { flex: none; width: 22px; height: 22px; margin: 0; accent-color: var(--navy); }
.call-form .choice label { font-weight: 400; color: var(--ink-2); }
.call-form .field-error { color: #A12B2B; font-weight: 600; }
.call-form .cta-row { margin-top: 0; }
button.btn { font: inherit; font-weight: 600; cursor: pointer; }
.form-errors { margin-top: 24px; max-width: 40rem; padding: 16px; border: 2px solid #A12B2B; border-radius: var(--radius-touch); }
.prose .form-errors h2 { margin-top: 0; font-family: var(--font-sans); font-size: 1.125rem; font-weight: 600; }
.form-errors a { color: #A12B2B; }
/* The honeypot field: off the page for people, still in the form for scripts. */
.hp-field { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.call-alt { margin-top: 32px; }

/* Final call */
.closing p { margin-top: 8px; color: var(--ink-2); }

/* Footer */
.site-footer { border-top: 1px solid var(--rule); background: var(--sunken); padding: 32px 0; color: var(--ink-2); font-size: 0.9375rem; }
.site-footer .lockup { font-size: 1.0625rem; }
.site-footer p { margin-top: 12px; }
.footer-links { margin-top: 16px; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 8px 20px; }

/* 404 */
.notfound { padding: 48px 0 80px; }
.notfound p { margin-top: 16px; color: var(--ink-2); max-width: 60ch; }

@media (min-width: 640px) {
  .wrap { padding-left: 32px; padding-right: 32px; }
  h1 { font-size: 2.75rem; }
  h2 { font-size: 2rem; }
  main > section { padding: 64px 0; }
  main > section.hero { padding-top: 72px; }
  .features { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .plans { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
  .split { grid-template-columns: 1fr 280px; gap: 48px; align-items: start; }
  .shot-phone { margin-top: 0; }
}

@media (min-width: 960px) {
  .features { grid-template-columns: repeat(3, 1fr); }
}

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

@media print {
  .site-header .btn, .skip, .pricing-page .toggle { display: none; }
  .pricing-page .tier-monthly { display: block; }
}
