/* Distrolio public site brand (batch 15): the marketing pages, sign-up, sign-in, privacy, terms and the public guide.
   Loaded after /erp.css on those pages only (body class "site"), so the app shell keeps its own look.
   A food-distribution / cold-chain brand: spruce ink, produce green, ice blue, citrus for the main call to action, on a
   cool off-white. Fonts are self-hosted (SIL Open Font License 1.1, see /site/fonts/OFL-*.txt): Manrope for headings,
   Inter for text. Contrast (WCAG 2.1, all AA or better): body text 11.7:1, muted text 6.5:1, links 5.0:1, primary button
   text 5.4:1, citrus button text 7.1:1, headings on the spruce band 12.5:1 (muted 6.9:1), footer text 10.0:1. */
@font-face { font-family: "Manrope"; src: url("/site/fonts/manrope-latin-var.woff2") format("woff2"); font-weight: 200 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/site/fonts/inter-latin-var.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }

body.site {
  /* palette */
  --spruce-900: #0B2F25; --spruce: #0E3B2E; --spruce-700: #17533F;
  --green-700: #1B6E3E; --green-600: #1F7A45; --green: #2F9E5B; --green-300: #7FD1A0; --green-100: #E3F4EA;
  --ice: #D9EEF5; --ice-50: #EEF7FA; --ice-600: #2A6F90; --ice-500: #3A8DB4;
  --citrus: #F2A541; --citrus-600: #E08F22;
  --paper: #F6F8F7; --white: #FFFFFF; --slate: #4A5E57; --hair: #D7E0DC; --hair-soft: #E6ECE9;
  /* erp.css tokens, re-pointed for these pages (the app keeps its own) */
  --bg: var(--paper); --panel: var(--white); --ink: var(--spruce); --muted: var(--slate); --line: var(--hair);
  --brand: var(--green-600); --brand-ink: #FFFFFF; --brand-soft: var(--green-100); --accent: var(--citrus);
  --radius: 8px; --shadow: 0 1px 0 rgba(14, 59, 46, .04), 0 1px 3px rgba(14, 59, 46, .08);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --display: "Manrope", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light;
  background: var(--paper); color: var(--ink); font: 15.5px/1.6 var(--font);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
/* a brand page stays light in dark mode (its colours are chosen for the light background) */
html:has(body.site) { background: var(--paper, #F6F8F7); color-scheme: light; }

.site h1, .site h2, .site h3 { font-family: var(--display); color: var(--spruce); letter-spacing: -.02em; font-weight: 800; }
.site h1 { letter-spacing: -.035em; line-height: 1.05; }
.site h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); letter-spacing: -.028em; line-height: 1.15; }
.site h3 { font-weight: 750; font-size: 1.08rem; }
.site a { color: var(--green-600); text-underline-offset: 3px; }
.site a:hover { color: var(--green-700); text-decoration: underline; }
.site :focus-visible { outline: 3px solid var(--ice-500); outline-offset: 2px; border-radius: 4px; }
.site .muted { color: var(--slate); }
.site .wrap { max-width: 1180px; padding: 0 20px; }
.site .card { border-radius: 8px; border-color: var(--hair); box-shadow: var(--shadow); }
.site .pill { display: inline-flex; align-items: center; gap: 8px; background: var(--white); color: var(--spruce); border: 1px solid var(--hair);
  border-radius: 6px; padding: 5px 10px; font-weight: 700; font-size: .8rem; letter-spacing: .02em; text-transform: uppercase; }
.site .pill::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--green); }

/* buttons: primary green, call to action citrus, secondary outline */
.site .btn { border-radius: 6px; font-weight: 700; padding: 10px 18px; border: 1.5px solid var(--hair); background: var(--white); color: var(--spruce); transition: background .15s, border-color .15s, color .15s; }
.site .btn:hover { border-color: var(--spruce); text-decoration: none; color: var(--spruce); }
.site .btn.primary { background: var(--green-600); border-color: var(--green-600); color: #fff; }
.site .btn.primary:hover { background: var(--green-700); border-color: var(--green-700); color: #fff; }
.site .btn.cta { background: var(--citrus); border-color: var(--citrus); color: var(--spruce-900); }
.site .btn.cta:hover { background: var(--citrus-600); border-color: var(--citrus-600); color: var(--spruce-900); }
.site .btn.outline { background: transparent; border-color: var(--spruce); color: var(--spruce); }
.site .btn.outline:hover { background: var(--spruce); color: #fff; }
.site .btn.lg { padding: 13px 22px; font-size: 1.02rem; }
.site .dark .btn.outline { border-color: rgba(255, 255, 255, .55); color: #fff; } .site .dark .btn.outline:hover { background: #fff; color: var(--spruce); }

/* forms */
.site input, .site select, .site textarea { background: var(--white); border-color: var(--hair); border-radius: 6px; }
.site input:focus, .site select:focus, .site textarea:focus { outline: 3px solid color-mix(in srgb, var(--ice-500) 45%, transparent); outline-offset: 0; border-color: var(--ice-500); }
.site label { color: var(--spruce); }

/* logo: a square mark with a route line through it */
.site .logo { display: inline-flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 800; font-size: 1.22rem; letter-spacing: -.03em; color: var(--spruce); text-decoration: none !important; }
.site .logo .mark { width: 32px; height: 32px; border-radius: 7px; background: var(--spruce); color: #fff; display: inline-grid; place-items: center; font-size: 1rem; position: relative; overflow: hidden; }
.site .logo .mark::after { content: ""; position: absolute; left: -4px; right: -4px; bottom: 7px; height: 3px; background: var(--green); transform: skewY(-12deg); }
.site .dark .logo, .site .logo.on-dark { color: #fff; } .site .dark .logo .mark { background: var(--green-600); }

/* header and footer (shared by the brand pages) */
.site header.top { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--white) 92%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--hair); }
.site header.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 66px; gap: 12px; }
.site header.top nav { display: flex; align-items: center; gap: 24px; }
.site header.top nav a:not(.btn) { color: var(--spruce); font-weight: 600; font-size: .95rem; }
.site footer.site-foot { background: var(--spruce-900); color: #C8DAD2; padding: 40px 0 46px; font-size: .92rem; border: 0; }
.site footer.site-foot .wrap { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }
.site footer.site-foot nav { display: flex; gap: 22px; flex-wrap: wrap; }
.site footer.site-foot a { color: #fff; font-weight: 600; } .site footer.site-foot a:hover { color: var(--green-300); }
.site footer.site-foot .logo { color: #fff; font-size: 1.05rem; } .site footer.site-foot .logo .mark { background: var(--green-600); width: 26px; height: 26px; font-size: .85rem; }
.site footer.site-foot .logo .mark::after { bottom: 3px; height: 2px; background: var(--green-300); }

/* the route-line grid pattern (hero, sign-in) */
.site .routes-bg {
  background-color: var(--paper);
  background-image:
    linear-gradient(to right, rgba(14, 59, 46, .06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(14, 59, 46, .06) 1px, transparent 1px),
    radial-gradient(circle at 85% 20%, rgba(58, 141, 180, .14), transparent 40%),
    radial-gradient(circle at 10% 90%, rgba(47, 158, 91, .10), transparent 45%);
  background-size: 32px 32px, 32px 32px, 100% 100%, 100% 100%;
}

/* simple document pages (privacy, terms) */
.site main.doc { max-width: 780px; margin: 0 auto; padding: 44px 20px 70px; line-height: 1.7; }
.site main.doc h1 { font-size: clamp(2rem, 4.5vw, 2.7rem); margin-bottom: 6px; }
.site main.doc h2 { font-size: 1.2rem; margin-top: 34px; letter-spacing: -.015em; padding-top: 14px; border-top: 1px solid var(--hair-soft); }
.site main.doc .muted { opacity: 1; color: var(--slate); }
