/* www.ltts.uk — shares the same design tokens and component language as
   the PKI/customer portals (app.ltts.uk, pki.ltts.uk): navy brand colour,
   blue accent, card-based layout, same light/dark mode mechanic. */

:root {
  --bg: #f4f6fa; --card: #ffffff; --ink: #121a2b; --muted: #5b6b79;
  --border: #e1e5ec; --accent: #2457c5; --accent-dark: #173a86; --accent-soft: #eaf1ff;
  --danger: #b3261e; --radius: 12px; --radius-sm: 8px;
  --brand-bg: #0f2342; --brand-ink: #aebcdc; --brand-ink-dim: #7c8bb0;
  --good: #0ca30c; --warn: #fab219; --crit: #d03b3b;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b1220; --card: #141b2b; --ink: #e7ecf5; --muted: #93a0b8;
    --border: #263047; --accent: #5b9bf5; --accent-dark: #bcd6fc; --accent-soft: #1c2c4a;
    --danger: #ef6a62;
    --brand-bg: #060c18; --brand-ink-dim: #6c7ba0;
    --good: #35c766; --warn: #ffbf3f; --crit: #ff6b63;
  }
}
:root[data-theme="dark"] {
  --bg: #0b1220; --card: #141b2b; --ink: #e7ecf5; --muted: #93a0b8;
  --border: #263047; --accent: #5b9bf5; --accent-dark: #bcd6fc; --accent-soft: #1c2c4a;
  --danger: #ef6a62;
  --brand-bg: #060c18; --brand-ink-dim: #6c7ba0;
  --good: #35c766; --warn: #ffbf3f; --crit: #ff6b63;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 16px/1.6 -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
a { color: var(--accent); }
.muted { color: var(--muted); }

/* ---------- top nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 32px; background: var(--card); border-bottom: 1px solid var(--border);
}
.nav .brand { display: flex; align-items: center; gap: 11px; text-decoration: none; }
.nav .logo {
  width: 34px; height: 34px; border-radius: 9px; background: var(--accent);
  color: #fff; font-weight: 700; font-size: 13px; display: flex; align-items: center;
  justify-content: center; letter-spacing: .02em; flex: none;
}
.nav .name { color: var(--ink); font-weight: 700; font-size: 15px; }
.nav .sub { color: var(--muted); font-size: 11.5px; }
.nav-links { display: flex; align-items: center; gap: 22px; }
.nav-links a {
  color: var(--ink); text-decoration: none; font-size: 14px; font-weight: 600;
}
.nav-links a:hover { color: var(--accent); }
.nav-links .btn { margin-left: 4px; }
#themeToggle {
  background: transparent; color: var(--muted); border: 1px solid var(--border);
  padding: 7px 13px; border-radius: 7px; font-size: 12.5px; cursor: pointer; font-weight: 600;
}
#themeToggle:hover { background: var(--bg); color: var(--ink); }

/* ---------- buttons ---------- */
.btn {
  display: inline-block; background: var(--accent); color: #fff !important; border: none;
  padding: 11px 22px; border-radius: 7px; font-size: 14.5px; font-weight: 600;
  text-decoration: none; cursor: pointer;
}
.btn:hover { background: var(--accent-dark); }
.btn-ghost {
  background: transparent; color: var(--ink) !important; border: 1px solid var(--border);
}
.btn-ghost:hover { background: var(--card); border-color: var(--accent); }

/* ---------- hero ---------- */
.hero {
  background: var(--brand-bg); color: #fff; padding: 88px 32px 96px; text-align: center;
}
.hero .eyebrow {
  font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--brand-ink); margin-bottom: 14px;
}
.hero h1 { font-size: 40px; line-height: 1.25; margin: 0 0 16px; color: #fff; }
.hero p { font-size: 17px; color: var(--brand-ink); max-width: 620px; margin: 0 auto 32px; }
.hero .actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero .btn-ghost { border-color: rgba(255,255,255,.25); color: #fff !important; }
.hero .btn-ghost:hover { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.4); }

/* ---------- sections ---------- */
.section { max-width: 1040px; margin: 0 auto; padding: 72px 32px; }
.section-head { max-width: 640px; margin: 0 auto 40px; text-align: center; }
.eyebrow {
  font-size: 11.5px; font-weight: 700; letter-spacing: .08em; color: var(--accent);
  text-transform: uppercase;
}
.section-head h2 { font-size: 27px; margin: 6px 0 10px; }
.section-head p { color: var(--muted); font-size: 15px; margin: 0; }

/* ---------- cards / feature grid ---------- */
.card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 22px 22px 24px;
}
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.feature .n {
  width: 30px; height: 30px; border-radius: 8px; background: var(--accent-soft); color: var(--accent-dark);
  font-size: 13px; font-weight: 700; display: flex; align-items: center; justify-content: center;
  margin-bottom: 14px;
}
.feature h3 { font-size: 15.5px; margin: 0 0 8px; }
.feature p { font-size: 13.5px; color: var(--muted); line-height: 1.55; margin: 0 0 14px; }
.feature a { font-size: 13px; font-weight: 600; text-decoration: none; }
.feature a:hover { text-decoration: underline; }

.badge {
  display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 11.5px;
  font-weight: 600; background: var(--accent-soft); color: var(--accent-dark);
}

/* ---------- security checklist (Managed SubCA section) ---------- */
.check-list { list-style: none; margin: 0 0 16px; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.check-list li { position: relative; padding-left: 24px; font-size: 13.5px; color: var(--muted); line-height: 1.55; }
.check-list li::before { content: "\2713"; position: absolute; left: 0; top: 0; color: var(--good); font-weight: 700; }
.check-list li strong { color: var(--ink); }

/* ---------- about / split section ---------- */
.about { background: var(--card); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.about .section { padding: 64px 32px; }
.about-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: start; }
.about h2 { font-size: 25px; margin: 6px 0 14px; }
.about p { color: var(--muted); font-size: 14.5px; line-height: 1.7; margin: 0 0 14px; }
.stat-list { display: flex; flex-direction: column; gap: 18px; }
.stat-list .stat { border-left: 3px solid var(--accent); padding-left: 14px; }
.stat-list .value { font-size: 22px; font-weight: 700; }
.stat-list .label { font-size: 12.5px; color: var(--muted); }

/* ---------- footer ---------- */
footer {
  padding: 32px; text-align: center; color: var(--muted); font-size: 13px;
  border-top: 1px solid var(--border);
}
footer a { color: var(--muted); text-decoration: none; margin: 0 8px; }
footer a:hover { color: var(--accent); }

@media (max-width: 860px) {
  .nav-links .nav-only { display: none; }
  .hero h1 { font-size: 30px; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .grid-4, .grid-2 { grid-template-columns: 1fr; }
  .nav { padding: 14px 18px; }
  .section { padding: 56px 18px; }
}
