/* Controlled Systems Group: company site. Same look as the QuietGuard family sites (Outfit, navy/green,
   light by default, soft-navy dark via the sun/moon switch; tokens copied from family-kit/family.css). */
@font-face { font-family: "Outfit"; font-weight: 100 900; font-display: swap; src: url("/fonts/outfit-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+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Outfit"; font-weight: 100 900; font-display: swap; src: url("/fonts/outfit-latin-ext-wght-normal.woff2") format("woff2"); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --navy: #40518a; --heading: #2f3d6b; --green: #4f9a5a;
  --ink: #23283a; --muted: #5f6982; --line: #dde1ec; --bg: #f5f6fa; --card: #ffffff; --tint: #eceef6;
  --link: #40518a; --mark: #40518a; --mark-dot: #4f9a5a;
  --shadow: 0 20px 50px rgba(35, 40, 58, 0.10);
  --font: "Outfit", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --navy: #5a6cb0; --heading: #eef1f8; --green: #7cc387;
  --ink: #cdd3e4; --muted: #a0a9c3; --line: #3a4566; --bg: #222b45; --card: #29334f; --tint: #27304c;
  --link: #bccaf3; --mark: #a9b8ea; --mark-dot: #7cc387;
  --shadow: 0 18px 40px rgba(10, 14, 30, 0.28);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.6; font-size: 17px; }
a { color: var(--link); }
:focus-visible { outline: 3px solid var(--green); outline-offset: 2px; border-radius: 6px; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 20px; }

.cmark { display: block; flex-shrink: 0; }
.cmark .cmark-c { stroke: var(--mark); }
.cmark .cmark-d { fill: var(--mark-dot); }

header { border-bottom: 1px solid var(--line); background: var(--card); }
header .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--heading); font-weight: 700; font-size: 19px; }
.theme-toggle { background: none; border: 1px solid var(--line); border-radius: 999px; width: 40px; height: 40px; display: grid; place-items: center; color: var(--heading); cursor: pointer; }
.theme-toggle svg { width: 20px; height: 20px; }
.theme-toggle .icon-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: none; }

h1, h2, h3 { color: var(--heading); line-height: 1.2; }
.hero { padding: 72px 0 48px; }
.hero h1 { font-size: clamp(34px, 5vw, 52px); margin: 0 0 18px; letter-spacing: -0.02em; }
.hero .lead { font-size: 21px; color: var(--muted); max-width: 680px; margin: 0; }
.hero .promise { margin-top: 26px; display: inline-block; padding: 10px 16px; border-radius: 999px; background: var(--tint); color: var(--heading); font-weight: 600; }

section { padding: 36px 0; }
section h2 { font-size: 28px; margin: 0 0 8px; }
section > .wrap > p.sub { color: var(--muted); margin: 0 0 24px; }
.grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 22px; box-shadow: var(--shadow); text-decoration: none; color: inherit; display: block; }
a.card:hover { border-color: var(--navy); }
.card h3 { margin: 0 0 6px; font-size: 20px; }
.card p { margin: 0 0 10px; color: var(--ink); }
.card .url { color: var(--link); font-weight: 600; font-size: 15px; }

.details { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 8px 22px; }
.details dl { display: grid; grid-template-columns: 220px 1fr; margin: 0; }
.details dt, .details dd { padding: 12px 0; border-bottom: 1px solid var(--line); margin: 0; }
.details dt { color: var(--muted); }
.details dl > :nth-last-child(-n+2) { border-bottom: 0; }
@media (max-width: 640px) { .details dl { grid-template-columns: 1fr; } .details dt { border-bottom: 0; padding-bottom: 0; } }

footer { border-top: 1px solid var(--line); margin-top: 40px; padding: 28px 0 40px; color: var(--muted); font-size: 15px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; }
footer nav a { margin-inline-end: 18px; }

.prose { max-width: 760px; padding: 48px 0; }
.prose h1 { font-size: 38px; margin: 0 0 6px; }
.prose .updated { color: var(--muted); margin: 0 0 28px; }
.prose h2 { font-size: 22px; margin: 30px 0 8px; }
