/* SafetyLine: shared styles. Corporate / consultancy look. No build step. */

:root {
  --ink: #0b1f33;        /* primary navy */
  --ink-2: #13304d;
  --text: #1c2733;
  --muted: #5b6876;
  --faint: #8a96a3;
  --line: #e3e7ec;
  --line-strong: #cfd6de;
  --bg: #ffffff;
  --bg-soft: #f6f7f9;
  --teal: #0f6e64;       /* "compliant" accent */
  --teal-soft: #e6f2f0;
  --amber: #c98a00;      /* small accents only */
  --amber-soft: #fbf3e0;
  --red: #b42318;
  --radius: 6px;
  --max: 1160px;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--sans); font-size: 16.5px; line-height: 1.65; color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; display: block; }
a { color: var(--ink); text-underline-offset: 3px; }
a:hover { color: var(--teal); }
h1, h2, h3 { color: var(--ink); margin: 0 0 .5em; line-height: 1.15; }
h1, h2 { font-family: var(--serif); font-weight: 600; letter-spacing: -.015em; }
h1 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
h3 { font-size: 1.1rem; font-weight: 600; letter-spacing: -.005em; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; top: 8px; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.center { text-align: center; margin-left: auto; margin-right: auto; }

/* Top bar + header */
.topbar { background: var(--ink); color: #c4cfda; font-size: .82rem; }
.topbar .container { display: flex; justify-content: space-between; align-items: center; height: 36px; gap: 16px; }
.topbar a { color: #fff; text-decoration: none; }
.topbar a:hover { text-decoration: underline; color: #fff; }
@media (max-width: 700px) { .topbar .hide-sm { display: none; } .topbar .container { justify-content: center; } }

.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.97); border-bottom: 1px solid var(--line); backdrop-filter: saturate(1.4) blur(6px); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand svg { width: 30px; height: 30px; }
.brand span { font-weight: 700; font-size: 1.2rem; letter-spacing: -.02em; }
.brand span b { font-weight: 700; color: var(--teal); }
.brand small { display: block; font-size: .62rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); margin-top: -2px; }
.nav { display: flex; align-items: center; gap: 2px; }
.nav a { text-decoration: none; color: var(--text); font-weight: 500; font-size: .94rem; padding: 8px 12px; border-radius: 4px; }
.nav a:hover { color: var(--ink); background: var(--bg-soft); }
.nav a[aria-current="page"] { color: var(--ink); box-shadow: inset 0 -2px 0 var(--ink); border-radius: 0; }
.nav .btn { margin-left: 10px; }
.menu-toggle { display: none; background: none; border: 1px solid var(--line-strong); border-radius: 4px; padding: 8px 10px; cursor: pointer; color: var(--ink); }
.menu-toggle svg { width: 22px; height: 22px; }

@media (max-width: 1020px) {
  .menu-toggle { display: inline-flex; }
  .nav { position: absolute; top: 72px; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; padding: 8px 20px 20px; display: none; box-shadow: 0 12px 24px rgba(11,31,51,.08); }
  .nav.open { display: flex; }
  .nav a { padding: 13px 4px; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--ink); padding-left: 12px; }
  .nav .btn { margin: 14px 0 0; text-align: center; border-bottom: 0; }
}

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: inherit; font-size: .95rem; font-weight: 600; text-decoration: none; padding: 12px 22px; border-radius: 4px; border: 1px solid transparent; cursor: pointer; transition: background .15s, border-color .15s, color .15s; }
.btn-primary, .btn-dark { background: var(--ink); color: #fff; }
.btn-primary:hover, .btn-dark:hover { background: var(--ink-2); color: #fff; }
.btn-ghost, .btn-outline { border-color: var(--line-strong); color: var(--ink); background: #fff; }
.btn-ghost:hover, .btn-outline:hover { border-color: var(--ink); color: var(--ink); }
.nav .btn-primary { padding: 9px 18px; color: #fff; }
.btn .arrow { transition: transform .15s; }
.btn:hover .arrow { transform: translateX(3px); }

/* Eyebrow labels */
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: .76rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--teal); margin-bottom: 18px; }
.eyebrow::before { content: ""; width: 24px; height: 1px; background: currentColor; }

/* Home hero */
.hero { padding: 80px 0 72px; border-bottom: 1px solid var(--line); background: linear-gradient(180deg, #fff 0%, var(--bg-soft) 100%); }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 64px; align-items: center; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; gap: 40px; } .hero { padding: 56px 0; } }
.hero h1 { max-width: 16ch; }
.hero p.lead { font-size: 1.15rem; color: var(--muted); max-width: 54ch; }
.hero p.strapline { font-size: 1.15rem; font-weight: 600; color: var(--ink); margin: 0; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

/* Example tracker panel */
.panel { background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 1px 2px rgba(11,31,51,.04), 0 18px 40px rgba(11,31,51,.08); overflow: hidden; }
.panel-head { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.panel-head strong { color: var(--ink); font-size: .95rem; }
.panel-head span { font-size: .78rem; color: var(--faint); }
.panel ul { list-style: none; margin: 0; padding: 4px 0; }
.panel li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 20px; border-bottom: 1px solid var(--line); font-size: .92rem; }
.panel li:last-child { border-bottom: 0; }
.panel li small { display: block; color: var(--faint); font-size: .78rem; }
.panel-foot { padding: 12px 20px; background: var(--bg-soft); font-size: .78rem; color: var(--faint); border-top: 1px solid var(--line); }
.status { flex: none; font-size: .74rem; font-weight: 600; padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
.status.ok { background: var(--teal-soft); color: var(--teal); }
.status.due { background: var(--amber-soft); color: #8a5d00; }
.status.info { background: #eef1f5; color: var(--ink-2); }

/* Frameworks strip */
.frameworks { padding: 26px 0; border-bottom: 1px solid var(--line); }
.frameworks .container { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 28px; }
.frameworks .label { font-size: .74rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); }
.frameworks span:not(.label) { font-size: .9rem; color: var(--muted); }

/* Inner page hero */
.page-hero { background: var(--ink); color: #fff; padding: 64px 0 60px; position: relative; overflow: hidden; }
.page-hero::after { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px); background-size: 48px 48px; mask-image: linear-gradient(90deg, transparent 30%, #000); pointer-events: none; }
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { color: #fff; max-width: 22ch; }
.page-hero p { color: #c4cfda; max-width: 64ch; font-size: 1.1rem; margin: 0; }
.page-hero .eyebrow { color: #7fc8be; }

/* Sections */
section { padding: 88px 0; }
@media (max-width: 700px) { section { padding: 64px 0; } }
.soft { background: var(--bg-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 720px; margin-bottom: 44px; }
.section-head p { color: var(--muted); font-size: 1.08rem; }

.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }

.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; transition: border-color .15s; }
a.card:hover { border-color: var(--ink); }
.card h3 { margin-top: 2px; }
.card p { color: var(--muted); margin: 0; }
.card .icon { width: 42px; height: 42px; border-radius: 6px; border: 1px solid var(--line); color: var(--ink); display: grid; place-items: center; margin-bottom: 18px; }
.card .icon svg { width: 22px; height: 22px; }
.card a.more { display: inline-block; margin-top: 16px; font-weight: 600; font-size: .94rem; text-decoration: none; }

/* Numbered sector rows (home) */
.sectors { border-top: 1px solid var(--line); }
.sector { display: grid; grid-template-columns: 80px 1fr 1fr; gap: 32px; padding: 40px 0; border-bottom: 1px solid var(--line); align-items: start; }
.sector .num { font-family: var(--serif); font-size: 2rem; color: var(--faint); line-height: 1; }
.sector h3 { font-family: var(--serif); font-size: 1.6rem; font-weight: 600; margin-bottom: 10px; }
.sector p { color: var(--muted); margin-bottom: 14px; }
.sector a.more { font-weight: 600; text-decoration: none; }
@media (max-width: 860px) { .sector { grid-template-columns: 1fr; gap: 14px; } }

.list-check { list-style: none; padding: 0; margin: 0; }
.list-check li { position: relative; padding-left: 28px; margin: 0 0 11px; }
.list-check li::before { content: ""; position: absolute; left: 0; top: .42em; width: 16px; height: 16px; border-radius: 50%; background: var(--teal-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230f6e64' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center/10px no-repeat; }
.list-check li strong { color: var(--ink); font-weight: 600; }

.steps { counter-reset: step; display: grid; gap: 0; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); border-top: 1px solid var(--line); }
.step { padding: 28px 24px 8px 0; }
.step::before { counter-increment: step; content: "0" counter(step); display: block; font-family: var(--serif); font-size: 1.4rem; color: var(--teal); margin-bottom: 10px; }
.step p { color: var(--muted); margin: 0; }

/* Tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
table { width: 100%; border-collapse: collapse; min-width: 560px; }
th, td { text-align: left; padding: 15px 18px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: var(--bg-soft); color: var(--muted); font-size: .74rem; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; }
td strong { color: var(--ink); font-weight: 600; }
tr:last-child td { border-bottom: 0; }
td small { color: var(--faint); }

/* Service detail blocks */
.service { display: grid; grid-template-columns: 1fr 1.25fr; gap: 56px; align-items: start; padding: 64px 0; border-bottom: 1px solid var(--line); scroll-margin-top: 90px; }
.service:last-child { border-bottom: 0; }
.service h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); }
@media (max-width: 860px) { .service { grid-template-columns: 1fr; gap: 20px; padding: 48px 0; } }
.service .tag { display: inline-block; font-size: .74rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--teal); margin-bottom: 14px; }
.service .btn { margin-top: 8px; }

/* CTA band */
.cta { background: var(--ink); color: #c4cfda; padding: 72px 0; }
.cta .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.cta h2 { color: #fff; margin: 0; font-size: clamp(1.5rem, 2.6vw, 2.1rem); }
.cta p { margin: 8px 0 0; }
.cta .btn-dark, .cta .btn-primary { background: #fff; color: var(--ink); }
.cta .btn-dark:hover, .cta .btn-primary:hover { background: #e9eef3; color: var(--ink); }

/* Forms */
.form { display: grid; gap: 18px; }
.form .row { display: grid; gap: 18px; grid-template-columns: 1fr 1fr; }
@media (max-width: 600px) { .form .row { grid-template-columns: 1fr; } }
label { font-weight: 600; font-size: .9rem; display: block; margin-bottom: 6px; color: var(--ink); }
input, select, textarea { width: 100%; font: inherit; padding: 12px 14px; border: 1px solid var(--line-strong); border-radius: 4px; background: #fff; color: var(--text); }
input:focus, select:focus, textarea:focus { outline: 3px solid rgba(15,110,100,.18); border-color: var(--teal); }
textarea { min-height: 140px; resize: vertical; }
.checkbox { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; color: var(--text); }
.checkbox input { width: 18px; height: 18px; margin-top: 4px; flex: none; }
.hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.form-status { padding: 14px 16px; border-radius: 4px; display: none; }
.form-status.ok { display: block; background: var(--teal-soft); color: var(--teal); border: 1px solid #b9dcd6; }
.form-status.err { display: block; background: #fdecea; color: var(--red); border: 1px solid #f5c2bd; }

.contact-info { list-style: none; padding: 0; margin: 0; display: grid; gap: 20px; }
.contact-info li { display: flex; gap: 14px; align-items: flex-start; }
.contact-info svg { width: 20px; height: 20px; color: var(--teal); flex: none; margin-top: 4px; }
.contact-info strong { display: block; color: var(--ink); }

/* FAQ */
details { border-bottom: 1px solid var(--line); padding: 18px 0; }
details:first-of-type { border-top: 1px solid var(--line); }
summary { cursor: pointer; font-weight: 600; color: var(--ink); list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-weight: 400; font-size: 1.3rem; line-height: 1; color: var(--faint); }
details[open] summary::after { content: "–"; }
details p { margin: 12px 0 0; color: var(--muted); }

/* Prose (privacy) */
.prose { max-width: 760px; }
.prose h2 { font-size: 1.4rem; margin-top: 1.8em; }

/* Footer */
.site-footer { background: #07172a; color: #9fb0c2; padding: 64px 0 28px; font-size: .92rem; }
.site-footer a { color: #dbe4ee; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-grid { display: grid; gap: 36px; grid-template-columns: 1.5fr 1fr 1fr 1fr; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 { color: #fff; margin: 0 0 14px; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.site-footer .brand { color: #fff; margin-bottom: 14px; }
.site-footer .brand span b { color: #7fc8be; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 48px; padding-top: 22px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; font-size: .84rem; }

/* Phones: tables become stacked cards instead of scrolling sideways */
@media (max-width: 600px) {
  table.stack { min-width: 0; }
  table.stack thead { display: none; }
  table.stack tr { display: block; padding: 16px 18px; border-bottom: 1px solid var(--line); }
  table.stack tr:last-child { border-bottom: 0; }
  table.stack td { display: block; padding: 0; border: 0; }
  table.stack td + td { margin-top: 6px; color: var(--muted); }
  table.stack.often td:nth-child(2) { color: var(--text); font-weight: 600; font-size: .94rem; }
  table.stack.often td:nth-child(2)::before { content: "How often: "; font-weight: 400; color: var(--muted); }
}
