/*
 * steadystatecrew.com landing page. 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; }

/* 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; }

/* 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: 0 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(2, 1fr); max-width: 760px; }
  .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 { display: none; }
}
