/* ===== 1. COLOURS (change here only) ===== */
:root {
  --bg: #f7f9fc;
  --white: #ffffff;
  --ink: #14233a;
  --muted: #52627a;
  --line: #dce4ef;
  --navy: #0f2a4a; /* headings, trust */
  --teal: #0e8f7e; /* accent */
  --teal-soft: #e3f4f1;
  --amber: #f59e0b;
  --amber-soft: #fff4db;
  --red: #d64545;
  --red-soft: #fdecec;
  --shadow: 0 5px 16px rgba(15, 42, 74, 0.08);
}
/* ===== 2. BASE ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 16px;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font:
    17px/1.8 "Inter",
    system-ui,
    -apple-system,
    "Segoe UI",
    sans-serif;
}
h1,
h2,
h3,
h4 {
  font-family: "Plus Jakarta Sans", "Inter", sans-serif;
  color: var(--navy);
  line-height: 1.25;
  margin: 0 0 0.5em;
}
h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}
h2 {
  font-size: clamp(1.35rem, 2.6vw, 1.7rem);
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 14px;
}
h2.plain {
  display: block;
}
h3 {
  font-size: 1.08rem;
  font-weight: 700;
}
h4 {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal);
  margin: 0 0 4px;
}
p {
  margin: 0 0 1em;
}
a {
  color: var(--teal);
}
:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 2px;
}
mark {
  background: var(--amber-soft);
  color: #7a4b00;
  padding: 1px 7px;
  border-radius: 5px;
  font-weight: 600;
}
.hl {
  color: var(--teal);
}
.code-tag {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--teal);
  background: var(--teal-soft);
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
}
/* ===== 3. NAV ===== */
nav.top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 24px;
  background: var(--white);
  padding: 14px max(24px, calc((100% - 960px) / 2));
}
.brand {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--navy);
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand b {
  color: var(--teal);
}
.logo {
  width: 18px;
  height: 20px;
  background: var(--teal);
  clip-path: polygon(50% 0, 100% 18%, 100% 62%, 50% 100%, 0 62%, 0 18%);
}
nav.top ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
nav.top a {
  display: block;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 999px;
}
nav.top a:hover {
  background: var(--teal-soft);
  color: var(--navy);
}
/* ===== 4. HERO (centered) + SHIELD ===== */
.hero {
  padding: 48px max(24px, calc((100% - 960px) / 2)) 56px;
  text-align: center;
  background: linear-gradient(180deg, var(--teal-soft), var(--bg));
}
.hero p {
  margin-left: auto;
  margin-right: auto;
  max-width: 62ch;
}
.lead {
  font-size: 1.15rem;
  color: var(--muted);
}
.meta {
  font-size: 0.92rem;
  color: var(--muted);
}
.shield {
  display: block;
  width: 92px;
  margin: 0 auto 18px;
  overflow: visible;
}
.shield .sh {
  fill: var(--navy);
}
.shield .tick {
  fill: none;
  stroke: #fff;
  stroke-width: 9;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: drawtick 4s ease-in-out infinite;
}
.shield .pulse {
  fill: none;
  stroke: var(--teal);
  stroke-width: 2;
  transform-box: fill-box;
  transform-origin: center;
  opacity: 0;
  animation: shpulse 3s ease-out infinite;
}
.shield .p2 {
  animation-delay: 1.5s;
}
/* ===== 5. DOCUMENT LAYOUT ===== */
.doc {
  max-width: 960px;
  margin: 0 auto;
  padding: 10px 24px 70px;
}
.glance,
.toc {
  padding: 36px 0 10px;
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 16px;
  margin-top: 16px;
}
.card {
  background: var(--white);
  border-radius: 14px;
  padding: 22px;
  box-shadow: var(--shadow);
  border-top: 4px solid var(--teal);
}
.card:nth-child(even) {
  border-top-color: var(--navy);
}
.card p {
  margin: 0;
  font-size: 0.94rem;
  color: var(--muted);
}
.ico {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--teal-soft);
  color: var(--teal);
  font-weight: 800;
  margin-bottom: 10px;
}
.toc ol {
  margin: 12px 0 0;
  padding: 22px 26px 22px 46px;
  background: var(--white);
  border-radius: 14px;
  box-shadow: var(--shadow);
  columns: 2;
  column-gap: 40px;
}
.toc li {
  padding: 3px 0;
  break-inside: avoid;
}
.toc a {
  text-decoration: none;
  font-weight: 500;
  color: var(--ink);
}
.toc a:hover {
  color: var(--teal);
  text-decoration: underline;
}
.toc li::marker {
  color: var(--teal);
  font-weight: 700;
}
.pol {
  padding: 36px 0 8px;
  border-top: 1px solid var(--line);
  margin-top: 34px;
}
.num {
  display: grid;
  place-items: center;
  min-width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--navy);
  color: #fff;
  font-size: 1rem;
  font-weight: 800;
  flex: none;
}
.pol p,
.pol li {
  color: #2b3c55;
}
.pol ul {
  margin: 0 0 1em;
  padding-left: 22px;
}
.pol li {
  margin-bottom: 0.55em;
}
.pol li::marker {
  color: var(--teal);
}
.pol b {
  color: var(--navy);
}
/* ===== 6. HIGHLIGHTS + PLACEHOLDERS ===== */
.key {
  background: var(--teal-soft);
  border: 1px solid #bfe3dc;
  border-left: 7px solid var(--teal);
  border-radius: 12px;
  padding: 16px 22px;
  margin: 22px 0;
}
.key b {
  display: inline-block;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: #fff;
  background: var(--teal);
  padding: 2px 10px;
  border-radius: 5px;
  margin-bottom: 6px;
}
.key p {
  margin: 0;
}
.key.warn {
  background: var(--amber-soft);
  border-color: #f4d58a;
  border-left-color: var(--amber);
}
.key.warn b {
  background: var(--amber);
  color: #2b1b00;
}
.fill {
  border: 2px dashed var(--amber);
  background: var(--amber-soft);
  color: #7a4b00;
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 0.93rem;
  margin: 0;
}
.fill.inline {
  display: inline;
  padding: 1px 8px;
  white-space: nowrap;
}
.contact {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 16px;
  margin-top: 18px;
  background: var(--white);
  padding: 22px;
  border-radius: 14px;
  box-shadow: var(--shadow);
}
.contact p {
  margin: 0;
}
/* ===== 7. FOOTER ===== */
footer {
  background: var(--navy);
  color: #c8d5e8;
  text-align: center;
  padding: 28px 20px 40px;
  font-size: 0.9rem;
}
/* ===== 8. ANIMATION, RESPONSIVE, PRINT ===== */
@keyframes drawtick {
  0%,
  15% {
    stroke-dashoffset: 1;
  }
  45%,
  85% {
    stroke-dashoffset: 0;
  }
  100% {
    stroke-dashoffset: 1;
  }
}
@keyframes shpulse {
  0% {
    transform: scale(0.8);
    opacity: 0.5;
  }
  100% {
    transform: scale(1.5);
    opacity: 0;
  }
}
@media (max-width: 700px) {
  .toc ol {
    columns: 1;
  }
  h2 {
    gap: 10px;
  }
  .num {
    min-width: 38px;
    height: 38px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    scroll-behavior: auto !important;
  }
  .shield .tick {
    stroke-dashoffset: 0;
  }
}
@media print {
  nav.top,
  .hero svg,
  footer {
    display: none;
  }
  body {
    background: #fff;
    font-size: 12pt;
  }
  .card,
  .contact,
  .toc ol {
    box-shadow: none;
    border: 1px solid #ccc;
  }
  .pol {
    page-break-inside: avoid;
  }
}
