/* ============================================================
   Streamline Automation Solutions. Homepage.
   Reference register: the Shop Marshal exemplar (tool catalogue,
   not SaaS). One self-hosted type family. Nothing loops, blinks,
   or pulses; motion only in direct response to hover/focus/click.
   No decorative overlays, no glassmorphism, no drop shadows. The
   Convergence mark sits beside the Inter wordmark, aria-hidden;
   the type still carries the name.
   ============================================================ */

/* ---- Self-hosted font: Inter (variable, weight range 400-800).
        One family ships. No CDN, no other webfont. ---- */
@font-face {
  font-family:"Inter";
  font-style:normal;
  font-weight:400 800;
  font-display:swap;
  src:url("../fonts/inter-latin-var.woff2") format("woff2");
}

/* ---- Tokens: two-tone by design (cream + near-black), the exemplar
        family system carried verbatim. No third hue introduced. ---- */
:root {
  --cream:      #FDF8F4;
  --cream-deep: #F3ECE1;
  --ink:        #1E1F20;
  --ink-soft:   #55504A;
  --ink-faint:  #6D6556;
  --line:       #E4DACB;
  --line-strong:#C7B99E;
  --focus:      #1E1F20;

  --font:"Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --maxw: 880px;
  --gutter: 20px;
  --header-h: 72px;
}
@media (min-width:760px) { :root { --gutter:40px; } }

/* ---- Reset / base ---- */
*,*::before,*::after { box-sizing:border-box; }
html,body { margin:0; }
html { -webkit-text-size-adjust:100%; scroll-behavior:auto; }
body {
  background:var(--cream); color:var(--ink);
  font-family:var(--font); font-size:16px; line-height:1.5;
  -webkit-font-smoothing:antialiased; text-rendering:optimizeLegibility;
  overflow-x:hidden;
}
a { color:inherit; text-decoration:none; }
img,svg { display:block; max-width:100%; height:auto; }
h1,h2 { margin:0; font-weight:700; }
p { margin:0 0 1em; }

:focus-visible { outline:2px solid var(--focus); outline-offset:3px; }

.skip-link {
  position:absolute; left:12px; top:-60px; z-index:100;
  background:var(--ink); color:var(--cream); border-radius:4px;
  padding:10px 16px; font-weight:600;
}
.skip-link:focus { top:12px; }
@media (prefers-reduced-motion: no-preference) { .skip-link { transition:top .15s ease; } }

.wrap { max-width:var(--maxw); margin:0 auto; padding:0 var(--gutter); }

.kicker {
  display:block; font-family:var(--font); font-weight:700; font-size:12px;
  letter-spacing:0.16em; text-transform:uppercase; color:var(--ink-soft);
  margin:0 0 14px;
}

/* ---- Buttons (solid ink / ghost outline; hover = colour only, no shadow) ---- */
.btn {
  display:inline-flex; align-items:center; justify-content:center; gap:9px;
  font-family:var(--font); font-weight:600; font-size:15px; line-height:1;
  border:1.5px solid var(--ink); border-radius:3px; cursor:pointer;
  padding:14px 24px; min-height:48px;
}
.btn-primary { color:var(--cream); background:var(--ink); }
.btn-ghost   { color:var(--ink); background:transparent; }
@media (prefers-reduced-motion: no-preference) {
  .btn { transition:background-color .15s ease, color .15s ease, border-color .15s ease; }
}
.btn-primary:hover { background:#3A3733; border-color:#3A3733; }
.btn-ghost:hover   { background:var(--ink); color:var(--cream); }
.ico-arr { width:15px; height:15px; flex:none; }
.ico-arr path { stroke:currentColor; stroke-width:2; fill:none; stroke-linecap:round; stroke-linejoin:round; }
.cta-addr { display:block; font-size:13px; color:var(--ink-soft); user-select:all; margin-top:8px; }

/* ---- Header (Convergence mark beside the Inter wordmark) ---- */
.site-header {
  position:sticky; top:0; z-index:50;
  background:var(--cream);
  border-bottom:1px solid var(--line);
}
.site-header .wrap { min-height:var(--header-h); display:flex; align-items:center; justify-content:space-between; gap:16px; padding-top:10px; padding-bottom:10px; }
.lockup { display:flex; align-items:center; gap:10px; }
.wordmark { display:flex; align-items:baseline; gap:0.35em; flex-wrap:nowrap; }
.wm-1, .wm-2 { font-weight:800; font-size:clamp(15px, 3.6vw, 19px); letter-spacing:0.01em; white-space:nowrap; }

/* Convergence mark: beside the type, never stretched (height set, width:auto
   preserves the master SVG's native ratio). Sized to the wordmark's own
   visual block height at each breakpoint; the type still carries the name
   (mark is aria-hidden). Kit floor is 32px wide at the mark's own tight
   geometry (252x136, 1.853:1); verified >=32px at every shipped breakpoint. */
.site-header .mark { flex:none; width:auto; height:30px; display:block; }

.nav { display:flex; align-items:center; }
.nav-links { display:flex; align-items:center; gap:8px 24px; }
.nav-links a { font-size:14.5px; font-weight:500; color:var(--ink-soft); display:inline-flex; align-items:center; min-height:44px; white-space:nowrap; }
@media (prefers-reduced-motion: no-preference) { .nav-links a { transition:color .15s ease; } }
.nav-links a:hover { color:var(--ink); }

@media (max-width:600px) {
  :root { --header-h:88px; }
  .lockup { gap:8px; }
  .site-header .mark { height:36px; }
  .wordmark { flex-direction:column; align-items:flex-start; gap:2px; }
  .wm-1 { font-size:16px; }
  .wm-2 {
    font-size:10px; font-weight:700; letter-spacing:0.14em; text-transform:uppercase;
    color:var(--ink-soft);
  }
  .nav-links { gap:6px 14px; }
  .nav-links a { font-size:13.5px; min-height:36px; }
}

/* ---- Anchor scroll offset (sticky header): the token plus a small fixed
        buffer, so the border-bottom hairline (and any minor engine/font
        rounding) can never put the anchor a pixel short of the header. ---- */
[id] { scroll-margin-top:calc(var(--header-h) + 12px); }

/* ---- Hero ---- */
.hero { border-bottom:1px solid var(--line); }
.hero-inner { max-width:var(--maxw); margin:0 auto; padding:72px var(--gutter) 64px; }
.hero-content { max-width:640px; }
.hero h1 { font-size:clamp(1.9rem, 3.2vw + 1.1rem, 2.9rem); line-height:1.08; letter-spacing:-0.01em; }
.hero .lead { font-size:17px; line-height:1.62; color:var(--ink-soft); max-width:560px; margin:22px 0 0; }
.hero .lead + .lead { margin-top:14px; }
.hero-cta { display:flex; gap:14px; margin-top:34px; flex-wrap:wrap; }
@media (max-width:600px) {
  .hero-inner { padding:48px var(--gutter) 44px; }
}

/* ---- Section rhythm ---- */
.section { padding:64px var(--gutter); max-width:var(--maxw); margin:0 auto; }
@media (max-width:600px) { .section { padding:48px var(--gutter); } }

/* ---- Shop Marshal teaser ---- */
.teaser { background:var(--cream-deep); border-top:1px solid var(--line); border-bottom:1px solid var(--line); }
.teaser-h2 { font-size:clamp(1.5rem, 1.6vw + 1.1rem, 2rem); margin:0 0 16px; }
.teaser-line { margin:0; font-size:15.5px; line-height:1.62; color:var(--ink-soft); }
.teaser-line + .teaser-line { margin-top:10px; }
.teaser-copy .teaser-line:first-of-type { color:var(--ink); font-size:16px; }
.teaser-action { margin-top:30px; }

/* ---- Contact ---- */
.cta { background:var(--cream-deep); border-top:1px solid var(--line); border-bottom:1px solid var(--line); }
.cta-inner { max-width:var(--maxw); margin:0 auto; padding:72px var(--gutter); }
.cta h2 { font-size:clamp(1.6rem, 2vw + 1.1rem, 2.2rem); line-height:1.08; letter-spacing:-0.01em; margin:0 0 22px; }
.cta-actions { display:block; }
@media (max-width:600px) { .cta-inner { padding:52px var(--gutter); } }

/* ---- Footer ---- */
.site-footer { border-top:1px solid var(--line); background:var(--cream); }
.footer-top { max-width:var(--maxw); margin:0 auto; padding:48px var(--gutter) 36px; display:grid; grid-template-columns:1.3fr 1fr 1fr; gap:36px; }
.footer-brand .lockup { gap:8px; }
.footer-brand .mark { flex:none; width:auto; height:22px; display:block; }
.footer-brand .name { font-weight:800; font-size:16px; letter-spacing:0.01em; }
.footer-col .col-h { font-weight:700; font-size:11px; letter-spacing:0.14em; color:var(--ink-faint); text-transform:uppercase; margin-bottom:14px; }
.footer-col .links { display:flex; flex-direction:column; gap:9px; font-size:14px; color:var(--ink-soft); }
.footer-col .links a { display:inline-flex; min-height:30px; align-items:center; }
@media (prefers-reduced-motion: no-preference) { .footer-col .links a { transition:color .15s ease; } }
.footer-col .links a:hover { color:var(--ink); }
.footer-rule { border-top:1px solid var(--line); }
.footer-rule .wrap { padding:18px var(--gutter); display:flex; justify-content:space-between; flex-wrap:wrap; gap:8px; font-size:12px; color:var(--ink-faint); }
@media (max-width:760px) { .footer-top { grid-template-columns:1fr 1fr; } }
@media (max-width:560px) { .footer-top { grid-template-columns:1fr; gap:28px; } }

/* ---- 404 page ---- */
.notfound-copy { max-width:520px; color:var(--ink-soft); font-size:16px; line-height:1.6; margin:18px 0 30px; }
