/* marketing-site/assets/site-system.css — hand-authored, loaded LAST (build.mjs).
 * The one visual system shared by cyntientops.com and francotech.co (design pass 26 Nov 2026,
 * runtime.nosync/site-review-20261126/DESIGN-PASS.md). francotech-site/public/style.css carries
 * the same tokens under the same names.
 *   stage    the end card's warm near-black, for dark bands (no grid, no glow)
 *   canvas   one cream for content; cards sit on it in --card with a hairline
 *   type     EB Garamond headings, IBM Plex Sans body, IBM Plex Mono only for small gold labels/stamps
 *   gold     one accent: --gold-fill on dark, --gold-identity (same hue, darker) for text on cream
 *   thread   the end card's red→gold line, once per page, as a hairline (footer top)
 *   space    8 / 16 / 24 / 40 / 64 / 96; a section is --sec (56 px phone → 88 px desktop)
 */
:root {
  --stage: #13100b;
  --stage-raised: #1c1810;
  --canvas: var(--bg, #F7F5EE);
  --card: #fffdf9;
  --rule: #e6dfcf;
  --rule-dark: color-mix(in srgb, var(--gold-fill) 18%, transparent);
  --thread: linear-gradient(90deg, #b3261e 0%, #d8792f 38%, #e3b45a 62%, #f2d27a 100%);
  --s1: 8px; --s2: 16px; --s3: 24px; --s4: 40px; --s5: 64px; --s6: 96px;
  --sec: clamp(56px, 5.6vw, 88px);
  --sec-sm: clamp(40px, 4.4vw, 64px);
  --radius: 10px;
  --font-serif: "EB Garamond", "Source Serif 4", Georgia, serif;
  --font-sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;
}

/* Footer gap: the canvas under the last dark band is the stage, so a short page or a
 * trackpad overscroll never shows a cream strip below the footer. */
html { background: var(--stage) !important; }
body { background: var(--canvas) !important; font-family: var(--font-sans) !important; }

/* EB Garamond sets smaller than Source Serif at the same size; a touch more weight and
 * tighter tracking keeps the headings at the same visual size and colour. */
h1, h2, h3 { font-weight: 500; font-feature-settings: "kern", "liga", "onum" 0, "lnum"; }

/* ---------- Navigation: one row on desktop, Menu + Request a demo on a phone ---------- */
.site-nav { gap: 16px; }
.site-nav .nav-links { margin-left: auto; }
.site-nav .nav-actions { display: flex; align-items: center; gap: 10px; flex: none; }
.site-nav .nav-menu { display: none; }
@media (max-width: 860px) {
  .site-nav { padding-top: 14px !important; padding-bottom: 14px !important; }
  .site-nav img { height: 34px !important; }
  .site-nav .nav-links { display: none !important; }
  .site-nav .nav-menu {
    display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px;
    background: transparent; color: #f1ead9; border: 1px solid var(--rule-dark); border-radius: 8px;
    font: 500 14px/1 var(--font-sans); cursor: pointer;
  }
  .site-nav .nav-menu:focus-visible { outline: 2px solid var(--gold-fill); outline-offset: 2px; }
  .site-nav .nav-cta { padding: 10px 14px !important; font-size: 14px !important; }
  .site-nav.is-open .nav-links {
    display: flex !important; flex-direction: column; align-items: stretch !important; gap: 0 !important;
    position: absolute; left: 0; right: 0; top: 100%; z-index: 20;
    background: var(--stage); border-top: 1px solid var(--rule-dark); border-bottom: 1px solid var(--rule-dark);
    padding: 8px clamp(20px, 5vw, 40px) 16px;
  }
  .site-nav.is-open .nav-links a { padding: 13px 0; font-size: 16px !important; border-bottom: 1px solid color-mix(in srgb, var(--gold-fill) 10%, transparent); }
  .site-nav.is-open .nav-links a:last-child { border-bottom: 0; }
}

/* ---------- Thread: the end card's red→gold line, once per page, at the footer ---------- */
footer.site-foot { border-top: 0 !important; position: relative; }
footer.site-foot::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--thread); opacity: .85;
}

/* ---------- Phone rhythm ---------- */
@media (max-width: 720px) {
  section, header { scroll-margin-top: 72px; }
}

/* Stacked on a phone, the desktop column gaps (64–80 px) become dead bands. */
@media (max-width: 900px) {
  [style*="gap:80px"], [style*="gap:72px"], [style*="gap:64px"], [style*="gap:60px"], [style*="gap:56px"] { gap: 32px !important; }
  [style*="border-left:2px solid"][style*="padding-left:36px"] { padding-left: 20px !important; }
}
