/* ============================================================
   Shop Marshal (shopmarshal.com). Landing page.
   Reference register: a tool catalogue (Klein / Fluke / Milwaukee),
   not a SaaS site. 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 screenshots are the design.
   ============================================================ */

/* ---- Self-hosted font: Inter (variable, true weight range 100-900).
        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), per BRAND_shop-marshal
        SS6. No third hue introduced. ---- */
:root {
  --cream:      #FDF8F4;   /* field, sampled from the primary lockup */
  --cream-deep: #F3ECE1;   /* alternating section band */
  --ink:        #1E1F20;   /* mark colour, sampled from the primary lockup */
  --ink-soft:   #55504A;   /* secondary text, mixed from ink+cream */
  --ink-faint:  #6D6556;   /* tertiary / captions */
  --line:       #E4DACB;   /* hairline on cream */
  --line-strong:#C7B99E;   /* stronger hairline / card borders */
  --focus:      #1E1F20;

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

  --maxw: 1180px;
  --gutter: 24px;
}
@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%; overflow-x:hidden; }
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,h3,h4 { margin:0; font-weight:700; }
p { margin:0 0 1em; }
ul,ol { margin:0; padding:0; }

: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 ---- */
.site-header {
  position:sticky; top:0; z-index:50;
  background:var(--cream);
  border-bottom:1px solid var(--line);
}
.site-header .wrap { height:72px; display:flex; align-items:center; justify-content:space-between; gap:16px; }
.lockup { display:flex; align-items:center; gap:12px; }
.lockup .mono { height:34px; width:auto; flex:none; }
.lockup .name { font-weight:800; font-size:18px; letter-spacing:0.01em; }

.nav { display:flex; align-items:center; gap:8px 28px; }
.nav-links { display:flex; align-items:center; gap:8px 28px; flex-wrap:wrap; }
.nav-links a { font-size:14.5px; font-weight:500; color:var(--ink-soft); display:inline-flex; align-items:center; min-height:44px; }
@media (prefers-reduced-motion: no-preference) { .nav-links a { transition:color .15s ease; } }
.nav-links a:hover { color:var(--ink); }
.nav-toggle { display:none; }
.btn-header { font-size:14px; padding:10px 16px; border-radius:3px; min-height:44px; }

@media (max-width:820px) {
  body.js .nav-toggle {
    display:inline-flex; align-items:center; justify-content:center;
    width:44px; height:44px; border-radius:3px; background:transparent;
    border:1.5px solid var(--ink); color:var(--ink); cursor:pointer; flex:none;
  }
  body.js .nav-links {
    position:absolute; top:72px; left:0; right:0; flex-direction:column; align-items:stretch; gap:0;
    background:var(--cream); border-bottom:1px solid var(--line); padding:6px var(--gutter) 14px; display:none;
  }
  body.js .nav-links.open { display:flex; }
  body.js .nav-links a { padding:12px 2px; border-bottom:1px solid var(--line); min-height:auto; }
  body.js .nav .btn-header { display:none; }
  body.js .nav-links .btn-header { display:inline-flex; margin-top:12px; }
}

/* ---- Hero ---- */
.hero { border-bottom:1px solid var(--line); }
.hero-inner {
  max-width:var(--maxw); margin:0 auto; padding:72px var(--gutter) 64px;
  display:grid; grid-template-columns:minmax(0,5fr) minmax(0,6fr); gap:48px; align-items:center;
}
.hero-content { min-width:0; }
.eyebrow {
  display:inline-flex; align-items:center; gap:9px; font-weight:600; font-size:12.5px;
  letter-spacing:0.1em; text-transform:uppercase; color:var(--ink-soft);
  border:1px solid var(--line-strong); border-radius:999px; padding:7px 14px; margin-bottom:22px;
}
.eyebrow .dot { width:6px; height:6px; border-radius:50%; background:var(--ink); flex:none; }
.hero h1 { font-size:clamp(2.1rem, 3.2vw + 1.2rem, 3.5rem); line-height:1.04; letter-spacing:-0.01em; }
.hero .lead { font-size:17.5px; line-height:1.62; color:var(--ink-soft); max-width:540px; margin:22px 0 0; }
.hero-cta { display:flex; gap:14px; margin-top:34px; flex-wrap:wrap; }
.hero-micro { margin-top:32px; font-size:12px; font-weight:600; letter-spacing:0.08em; color:var(--ink-faint); text-transform:uppercase; }

.hero-fig { min-width:0; }
.hero-shot { border:1px solid var(--line-strong); background:var(--cream-deep); overflow:hidden; }
.hero-shot img { width:100%; height:auto; display:block; }
.hero-shot-cap { margin-top:10px; font-size:12.5px; line-height:1.5; color:var(--ink-soft); }
.hero-shot-cap .id { display:block; font-weight:700; letter-spacing:0.08em; color:var(--ink); margin-bottom:2px; }

@media (max-width:900px) {
  .hero-inner { grid-template-columns:1fr; padding:56px var(--gutter) 48px; }
}

/* ---- Hero video slot: complete markup, renders NOTHING until activated.
        AC7-REVISED / AC21 - see README "Video mini-ceremony". The <template>
        wrapper in index.html is the ONLY gate (template content is never
        rendered by the browser); no second CSS gate is layered on top, so
        the mini-ceremony has exactly one thing to change, not two. ---- */
.phone-frame {
  width:min(260px, 62vw); margin:0 auto; border:8px solid var(--ink); border-radius:26px;
  aspect-ratio:9/19.5; overflow:hidden; background:var(--ink);
}
.phone-frame video { width:100%; height:100%; object-fit:cover; display:block; }

/* ---- Section rhythm ---- */
.section { padding:72px var(--gutter); max-width:var(--maxw); margin:0 auto; }
.band { background:var(--cream-deep); border-top:1px solid var(--line); border-bottom:1px solid var(--line); }
.svc-head { display:flex; justify-content:space-between; align-items:flex-end; flex-wrap:wrap; gap:18px 32px; margin-bottom:36px; }
.h2 { font-size:clamp(1.6rem, 1.6vw + 1.1rem, 2.35rem); line-height:1.08; letter-spacing:-0.01em; }
.svc-head .intro { font-size:15px; line-height:1.6; color:var(--ink-soft); max-width:400px; margin:0; }
.closing {
  margin:28px 0 0; font-size:16px; line-height:1.6; color:var(--ink-soft);
  border-left:2px solid var(--ink); padding-left:16px; max-width:720px;
}

/* ---- 01 / Problem ---- */
.prob-grid { display:grid; grid-template-columns:1fr 1fr; gap:16px; }
.card { border:1px solid var(--line-strong); border-radius:3px; padding:28px; background:var(--cream); }
.card-tag {
  display:inline-block; margin:0 0 16px; font-weight:700; font-size:11px; letter-spacing:0.14em;
  color:var(--ink-soft); text-transform:uppercase; border:1px dashed var(--line-strong); border-radius:3px; padding:5px 10px;
}
.card h3 { font-size:20px; margin:0 0 10px; }
.card p:last-child { margin-bottom:0; }
.card p { font-size:14.5px; line-height:1.62; color:var(--ink-soft); }
@media (max-width:760px) { .prob-grid { grid-template-columns:1fr; } }

/* ---- 02 / What it does: plain ordered flow + capability plates ---- */
.flow-list { list-style:none; counter-reset:fl; display:flex; flex-wrap:wrap; gap:10px 14px; margin:0 0 8px; }
.flow-list li {
  counter-increment:fl; font-weight:700; font-size:12.5px; letter-spacing:0.1em; text-transform:uppercase;
  color:var(--ink); border:1px solid var(--line-strong); border-radius:3px; padding:8px 14px 8px 30px; position:relative;
}
.flow-list li::before {
  content:counter(fl); position:absolute; left:10px; top:50%; transform:translateY(-50%);
  font-size:11px; color:var(--ink-faint);
}
.flow-list .is-last { color:var(--cream); background:var(--ink); }

.card-grid { display:grid; grid-template-columns:repeat(2,1fr); gap:16px; margin-top:36px; }
.plate { border-top:2px solid var(--ink); }
.plate-row { display:flex; justify-content:space-between; align-items:center; margin-bottom:18px; font-weight:700; font-size:11px; letter-spacing:0.16em; color:var(--ink-faint); }
.plate h3 { margin:6px 0 10px; }
.icon { width:40px; height:40px; }
.icon path, .icon rect, .icon circle { stroke:var(--ink); stroke-width:2.2; fill:none; stroke-linecap:round; stroke-linejoin:round; }
.tags { display:flex; flex-wrap:wrap; gap:8px; margin-top:16px; }
.tag { font-size:11px; font-weight:600; color:var(--ink-soft); border:1px solid var(--line); border-radius:3px; padding:5px 10px; }
@media (max-width:760px) { .card-grid { grid-template-columns:1fr; } }

/* ---- 03 / See it: real screenshots, plain captions ---- */
.scr-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:20px; }
.scr { margin:0; }
.scr-frame { border:1px solid var(--line-strong); background:var(--cream-deep); overflow:hidden; }
.scr-frame-split { display:flex; }
.scr-frame-split img { border-left:1px solid var(--line-strong); }
.scr-frame-split img:first-child { border-left:0; }
.scr img { width:100%; height:auto; display:block; }
@media (prefers-reduced-motion: no-preference) { .scr-link img { transition:opacity .15s ease; } }
.scr-link:hover img, .scr-link:focus-visible img { opacity:.88; }
.scr-cap { margin-top:10px; font-size:12.5px; line-height:1.55; color:var(--ink-soft); }
.scr-cap .id { display:block; margin-bottom:2px; font-weight:700; font-size:11px; letter-spacing:0.08em; color:var(--ink); text-transform:uppercase; }
.scr-note { margin:20px 0 0; font-size:12.5px; line-height:1.6; color:var(--ink-faint); }
@media (max-width:900px) { .scr-grid { grid-template-columns:1fr 1fr; } }
@media (max-width:620px) { .scr-grid { grid-template-columns:1fr; } }

/* ---- 04 / Portals ---- */
.portal-grid { display:grid; grid-template-columns:1fr 1fr; gap:16px; }
.portal-grid h3 { margin:0 0 10px; font-size:19px; }
@media (max-width:760px) { .portal-grid { grid-template-columns:1fr; } }

/* ---- 05 / Paper trail: schedule of records ---- */
.sched { margin-top:8px; border-top:1px solid var(--line-strong); }
.sched-row { display:grid; grid-template-columns:minmax(180px,270px) auto 1fr; gap:4px 16px; align-items:baseline; padding:14px 0; border-bottom:1px solid var(--line); }
.sched-term { font-weight:700; font-size:12.5px; letter-spacing:0.06em; color:var(--ink); }
.sched-sep { color:var(--ink-faint); }
.sched-line { font-size:13.5px; line-height:1.6; color:var(--ink-soft); }
@media (max-width:700px) { .sched-row { grid-template-columns:1fr; } .sched-sep { display:none; } }

/* ---- 06 / Document engine ---- */
.docband {
  margin:32px 0 0; padding:18px 0; border-top:1px solid var(--line-strong); border-bottom:1px solid var(--line-strong);
  display:flex; flex-wrap:wrap; gap:10px 18px; font-weight:600; font-size:12.5px; letter-spacing:0.06em; text-transform:uppercase; color:var(--ink-soft);
}
.docband .sep { color:var(--ink-faint); }

/* ---- 07 / AI layer ---- */
.ai-body { font-size:15.5px; line-height:1.68; color:var(--ink-soft); max-width:800px; margin:0 0 32px; }
.term { border:1px solid var(--line-strong); border-radius:3px; background:var(--cream-deep); padding:24px 26px; }
.term-head { display:flex; align-items:center; gap:16px; padding-bottom:14px; margin-bottom:14px; border-bottom:1px solid var(--line-strong); font-weight:700; font-size:11px; letter-spacing:0.14em; color:var(--ink-faint); text-transform:uppercase; }
.term-line { margin:0; padding:6px 0; font-size:13.5px; line-height:1.6; color:var(--ink); }
.term-ps { color:var(--ink-faint); margin-right:10px; }

/* ---- 08 / Why it's real ---- */
.rd { border:1px solid var(--line-strong); border-radius:3px; padding:32px; }
.rd-head { display:flex; align-items:center; gap:16px; padding-bottom:16px; margin-bottom:26px; border-bottom:1px solid var(--line); font-weight:700; font-size:11px; letter-spacing:0.16em; color:var(--ink-faint); text-transform:uppercase; }
.rd-lead { flex:1; min-width:24px; height:0; border-bottom:2px dotted var(--line-strong); align-self:center; }
.rd-grid { display:grid; grid-template-columns:1fr 1fr; }
.rd-col:first-child { padding-right:32px; }
.rd-col + .rd-col { border-left:1px solid var(--line); padding-left:32px; }
.rd-status { display:flex; align-items:center; gap:9px; margin:0; font-weight:700; font-size:12px; letter-spacing:0.14em; text-transform:uppercase; color:var(--ink-soft); }
.rd-dot { width:7px; height:7px; border-radius:50%; background:var(--ink); flex:none; }
.rd-dot-hollow { background:transparent; border:1px solid var(--ink-soft); }
.rd-col h3 { font-size:20px; margin:16px 0 10px; }
.rd-copy { font-size:14.5px; line-height:1.62; color:var(--ink-soft); margin:0; }
@media (max-width:820px) {
  .rd-grid { grid-template-columns:1fr; }
  .rd-col:first-child { padding-right:0; padding-bottom:26px; }
  .rd-col + .rd-col { border-left:0; padding-left:0; border-top:1px solid var(--line); padding-top:26px; }
}

/* ---- Straight answers ---- */
.qa { border-top:1px solid var(--line-strong); margin-top:24px; }
.qa-row { display:grid; grid-template-columns:200px 1fr; gap:14px 26px; padding:22px 0; border-bottom:1px solid var(--line); }
.qa-q { font-weight:700; font-size:13px; letter-spacing:0.1em; color:var(--ink); padding-top:2px; }
.qa-a { margin:0; font-size:15px; line-height:1.6; color:var(--ink-soft); max-width:640px; }
@media (max-width:700px) { .qa-row { grid-template-columns:1fr; gap:6px; } }

/* ---- CTA moment ---- */
.cta { background:var(--cream-deep); border-top:1px solid var(--line); }
.cta-inner { max-width:820px; margin:0 auto; padding:80px var(--gutter); text-align:center; }
.cta .brandmark { width:min(300px, 68%); height:auto; margin:0 auto 30px; }
.cta h2 { font-size:clamp(1.7rem, 2vw + 1.1rem, 2.5rem); line-height:1.06; letter-spacing:-0.01em; margin:0 0 16px; }
.cta .lines { font-size:16.5px; line-height:1.6; color:var(--ink-soft); max-width:580px; margin:0 auto 38px; }
.ladder { display:grid; gap:24px; max-width:480px; margin:0 auto; }
.rung-note { margin:10px auto 0; font-size:13px; line-height:1.55; color:var(--ink-faint); max-width:400px; }

/* ---- 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 { margin-bottom:14px; }
.footer-brand .mono { height:28px; }
.footer-brand p { font-size:13px; color:var(--ink-soft); max-width:280px; line-height:1.6; margin:0; }
.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:820px) { .footer-top { grid-template-columns:1fr 1fr; } }
@media (max-width:560px) { .footer-top { grid-template-columns:1fr; gap:28px; } }

/* ---- Responsive base ---- */
@media (max-width:760px) {
  .section { padding:56px var(--gutter); }
  .svc-head { margin-bottom:28px; }
  .cta-inner { padding:64px var(--gutter); }
}
@media (max-width:480px) {
  :root { --gutter:18px; }
}

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

