/* Palette taken from cv_front (app/assets/scss variables). */
:root {
  --navy: #00034e;
  --primary: #0162bd;
  --accent: #f63563;
  --accent-hover: #d32a52;
  --bg: #f0f3f8;
  --tint: #f4f8fc;
  --card: #ffffff;
  --text: #333333;
  --muted: #5b616e;
  --border: #ebecef;
  --green: #16a34a;
  --orange: #ff8a4c;
  --red: #ef4444;
  --purple: #7e63e7;
  --radius: 16px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--primary); }
code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .9em; background: var(--tint); padding: 1px 6px; border-radius: 6px; }

.container { max-width: 1230px; margin: 0 auto; padding: 0 30px; }
@media (max-width: 768px) { .container { padding: 0 16px; } }

/* Top bar */
.topbar { background: #fff; border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 10; }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 16px; }
.topbar__logo img { display: block; height: 36px; width: auto; }
.topbar__nav { display: flex; align-items: center; gap: 28px; }
.topbar__nav a { color: #000; text-decoration: none; font-weight: 500; font-size: 15px; }
.topbar__nav a:hover { color: var(--primary); }
@media (max-width: 768px) { .topbar__nav a:not(.btn) { display: none; } }

/* Buttons */
.btn {
  display: inline-block; background: var(--accent); color: #fff !important; text-decoration: none;
  font-weight: 600; padding: 14px 28px; border-radius: 50px; transition: background .2s;
}
.btn:hover { background: var(--accent-hover); }
.btn--small { padding: 9px 20px; font-size: 14px; }

/* Hero */
.hero {
  background: radial-gradient(circle at 85% 0%, rgba(1, 98, 189, .55), transparent 55%), var(--navy);
  color: #fff; padding: 72px 0 88px;
}
.hero__eyebrow { margin: 0 0 8px; text-transform: uppercase; letter-spacing: .12em; font-size: 13px; font-weight: 600; color: var(--accent); }
.hero h1 { margin: 0; font-size: 44px; line-height: 1.2; font-weight: 700; }
.hero__lead { max-width: 720px; font-size: 18px; color: rgba(255, 255, 255, .8); margin: 16px 0 40px; }
@media (max-width: 768px) { .hero { padding: 48px 0 64px; } .hero h1 { font-size: 30px; } .hero__lead { font-size: 16px; } }

.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 0; }
.facts__item { background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .15); border-radius: var(--radius); padding: 18px 20px; }
.facts dt { font-size: 13px; color: rgba(255, 255, 255, .65); margin-bottom: 4px; }
.facts dd { margin: 0; font-weight: 600; font-size: 17px; overflow-wrap: anywhere; }
.facts dd a { color: #fff; }
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: #54c600; margin-right: 8px; box-shadow: 0 0 0 4px rgba(84, 198, 0, .25); }
@media (max-width: 960px) { .facts { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .facts { grid-template-columns: 1fr; } }

/* Content cards */
.content { margin-top: -40px; padding-bottom: 64px; display: grid; gap: 24px; }
.card { background: var(--card); border-radius: var(--radius); padding: 36px 40px; box-shadow: 0 4px 24px rgba(0, 3, 78, .06); scroll-margin-top: 96px; }
.card h2 { margin: 0 0 16px; font-size: 26px; color: #000; }
.card p { margin: 0 0 12px; }
.card ul, .card ol { padding-left: 20px; margin: 0 0 16px; }
.card li { margin-bottom: 8px; }
.card--accent { border-top: 4px solid var(--accent); }
@media (max-width: 768px) { .card { padding: 24px 20px; } .card h2 { font-size: 22px; } }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
@media (max-width: 768px) { .grid-2 { grid-template-columns: 1fr; gap: 16px; } }

.tag { display: inline-block; font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; padding: 4px 12px; border-radius: 50px; margin: 0 0 12px; }
.tag--in { background: #e6f6ec; color: var(--green); }
.tag--out { background: #ffede3; color: #ae3d01; }

.steps { counter-reset: step; list-style: none; padding-left: 0 !important; }
.steps li { counter-increment: step; position: relative; padding-left: 44px; margin-bottom: 14px; }
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: 0; width: 28px; height: 28px; border-radius: 50%;
  background: var(--tint); color: var(--primary); font-weight: 700; font-size: 14px; display: grid; place-items: center;
}

.severity { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 8px; }
.severity__item { border-radius: 12px; padding: 14px 16px; background: var(--tint); border-left: 4px solid; display: flex; flex-direction: column; }
.severity__item span { font-weight: 700; color: #000; }
.severity__item small { color: var(--muted); }
.severity__item--critical { border-color: var(--red); }
.severity__item--high { border-color: var(--orange); }
.severity__item--medium { border-color: var(--purple); }
.severity__item--low { border-color: var(--primary); }
@media (max-width: 640px) { .severity { grid-template-columns: repeat(2, 1fr); } }

/* Footer */
.footer { background: var(--navy); color: rgba(255, 255, 255, .7); font-size: 14px; padding: 28px 0; }
.footer__inner { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer p { margin: 0; }
.footer a { color: #fff; }
