/* Sentryx Cyber Solutions — site styles
   Tokens first, then base, then layout, then components. */

:root {
  --paper: #faf9f6;
  --paper-deep: #f2efe7;
  --surface: #ffffff;
  --border: #e8e4da;
  --border-soft: #e3e0d8;
  --navy: #0f2240;
  --ink: #3c4658;
  --ink-soft: #5a6475;
  /* Mockup used #8a8372; darkened to meet WCAG AA (4.5:1) against
     --paper-deep, where it carries 11px fine print. See tests/test_contrast.py. */
  --muted: #726c5e;
  --gold: #b08d57;
}

/* ---------- base ---------- */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
}

h1, h2, h3, h4, h5 {
  font-family: Georgia, "Times New Roman", Times, serif;
  color: var(--navy);
  letter-spacing: -0.015em;
  margin: 0 0 0.5em;
}

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--navy); }

:focus-visible {
  outline: 3px solid var(--navy);
  outline-offset: 2px;
  border-radius: 2px;
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--navy);
  color: var(--paper);
  padding: 12px 18px;
  z-index: 10;
}
.skip-link:focus { left: 0; }

.rule {
  width: 26px;
  height: 2px;
  background: var(--gold);
  margin: 0 0 14px;
}

.section-label {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 24px;
}

/* ---------- layout ---------- */

.band {
  padding: 48px 24px 52px;
  border-top: 1px solid var(--border-soft);
}
.band > * { max-width: 1060px; margin-left: auto; margin-right: auto; }
.band--quiet { background: var(--paper-deep); }

.grid { display: grid; gap: 20px; }
@media (min-width: 760px) {
  .grid--3 { grid-template-columns: repeat(3, 1fr); gap: 26px; }
}

/* ---------- header and nav ---------- */

.site-header { border-bottom: 1px solid var(--border-soft); }

.nav {
  max-width: 1060px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.nav__brand {
  font-family: Georgia, "Times New Roman", Times, serif;
  font-size: 21px;
  font-weight: 600;
  color: var(--navy);
  text-decoration: none;
  margin-right: auto;
}

/* Visually hidden but still focusable and still named by its <label>, which is
   what makes the no-JS disclosure usable from the keyboard and a screen reader. */
.nav__toggle {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.nav__burger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--ink);
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 4px;
  padding: 9px 14px;
  cursor: pointer;
  min-height: 44px;
}
.nav__burger span {
  width: 16px; height: 2px;
  background: var(--ink);
  box-shadow: 0 5px 0 var(--ink), 0 -5px 0 var(--ink);
}
.nav__toggle:focus-visible + .nav__burger {
  outline: 3px solid var(--navy);
  outline-offset: 2px;
}

.nav__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: none;
  width: 100%;
  flex-direction: column;
  gap: 2px;
}
.nav__toggle:checked ~ .nav__list { display: flex; }

.nav__link, .nav__cta {
  display: block;
  padding: 12px 2px;
  font-size: 15px;
  color: var(--ink-soft);
  text-decoration: none;
}
.nav__link[aria-current="page"] {
  color: var(--navy);
  font-weight: 600;
  box-shadow: inset 0 -2px 0 var(--gold);
}
.nav__cta {
  background: var(--navy);
  color: var(--paper);
  border-radius: 2px;
  text-align: center;
  padding: 12px 16px;
  margin-top: 6px;
}

@media (min-width: 760px) {
  .nav__burger { display: none; }
  /* The label is gone at this width, so the checkbox must stop being a tab
     stop; display:none is correct here because it is not focusable either. */
  .nav__toggle { display: none; }
  .nav__list {
    display: flex;
    flex-direction: row;
    align-items: center;
    width: auto;
    gap: 24px;
  }
  .nav__link { padding: 6px 0; }
  .nav__cta { margin-top: 0; padding: 9px 16px; }
}

/* ---------- buttons ---------- */

.btn {
  display: inline-block;
  font-size: 15px;
  text-decoration: none;
  padding: 13px 22px;
  border-radius: 2px;
  min-height: 44px;
}
.btn--primary { background: var(--navy); color: var(--paper); }
.btn--ghost { border: 1px solid var(--border); background: var(--surface); color: var(--navy); }

/* ---------- hero ---------- */

.hero {
  padding: 52px 24px 48px;
  text-align: center;
  background: linear-gradient(180deg, #f5f2ea 0%, var(--paper) 100%);
}
.hero > * { max-width: 760px; margin-left: auto; margin-right: auto; }

.pill {
  display: inline-block;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 999px;
  margin: 0 0 20px;
}

.hero__title {
  font-size: clamp(30px, 6vw, 44px);
  line-height: 1.15;
  font-weight: 400;
  margin: 0 0 18px;
}

.hero__sub { font-size: 17px; color: var(--ink-soft); margin: 0 auto 26px; }

.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

/* ---------- problem cards ---------- */

.problem__num {
  font-family: Georgia, serif;
  font-weight: 600;
  font-size: 15px;
  color: var(--gold);
  margin: 0 0 8px;
}
.problem__title { font-size: 18px; margin: 0 0 8px; }
.problem p { font-size: 15.5px; color: var(--ink-soft); }

/* ---------- service cards ---------- */

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 22px;
  box-shadow: 0 1px 2px rgba(15, 34, 64, 0.04);
}
.card__title { font-size: 19px; margin: 0 0 8px; }
.card__body { font-size: 15.5px; color: var(--ink-soft); margin: 0 0 14px; }
.card__link { font-size: 15px; color: var(--navy); }

/* ---------- differentiator strip ---------- */

.strip-wrap { background: var(--border-soft); border-top: 1px solid var(--border-soft); }
.strip {
  display: grid;
  gap: 1px;
  max-width: 1060px;
  margin: 0 auto;
  background: var(--border-soft);
}
.strip__item { background: var(--paper-deep); padding: 20px 24px; }
.strip__title { font-size: 16px; margin: 0 0 4px; }
.strip__item p { font-size: 14.5px; color: var(--ink-soft); }

@media (min-width: 560px) { .strip { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) { .strip { grid-template-columns: repeat(4, 1fr); } }

/* ---------- closing band ---------- */

.band--close { background: var(--paper-deep); text-align: center; }
.close__title { font-size: clamp(22px, 4vw, 30px); font-weight: 400; margin: 0 0 10px; }
.close__sub { color: var(--ink-soft); margin: 0 0 22px; }

/* ---------- footer ---------- */

.footer {
  max-width: 1060px;
  margin: 0 auto;
  padding: 24px;
  border-top: 1px solid var(--border-soft);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  font-size: 14px;
  color: var(--muted);
}
.footer__line { margin: 0; }
.footer a { color: var(--muted); }
.footer__copy { margin-left: auto; }

/* ---------- interior page head ---------- */

.page-head {
  padding: 44px 24px 40px;
  background: linear-gradient(180deg, #f5f2ea 0%, var(--paper) 100%);
}
.page-head .wrap { max-width: 1060px; margin: 0 auto; }
/* The children are left-aligned inside that column, so .lede keeps its
   46em measure and still lines up with the title. */

.eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 14px;
}

.page-head__title {
  font-size: clamp(27px, 5vw, 38px);
  line-height: 1.18;
  font-weight: 400;
  margin: 0 0 16px;
}

.lede { font-size: 17.5px; line-height: 1.72; color: var(--ink-soft); max-width: 46em; }

.fine { font-size: 14.5px; line-height: 1.6; color: var(--ink-soft); margin: 16px 0 0; }

/* ---------- service blocks ---------- */

.svc {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 24px;
  margin-bottom: 18px;
  box-shadow: 0 1px 2px rgba(15, 34, 64, 0.04);
  display: grid;
  gap: 22px;
}
.svc:last-child { margin-bottom: 0; }

@media (min-width: 860px) {
  .svc { grid-template-columns: 1.05fr 1fr; gap: 36px; }
}

.tag {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--border);
  background: var(--paper);
  border-radius: 999px;
  padding: 5px 11px;
  margin: 0 0 14px;
}

.svc__title { font-size: 23px; margin: 0 0 10px; }
.svc__promise { font-size: 16px; line-height: 1.68; color: var(--ink-soft); margin: 0; }

.svc__meta { border-left: 2px solid var(--border); padding-left: 18px; }
.svc__metatitle {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 10px;
}

.ticks { list-style: none; margin: 0; padding: 0; }
.ticks li {
  position: relative;
  font-size: 15.5px;
  line-height: 1.5;
  padding: 8px 0 8px 18px;
  border-bottom: 1px solid var(--paper-deep);
}
.ticks li:last-child { border-bottom: 0; }
.ticks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 16px;
  width: 8px;
  height: 2px;
  background: var(--gold);
}

/* ---------- response table ---------- */

.table-wrap { overflow-x: auto; }

.sla {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}
.sla th[scope="col"] {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: left;
  padding: 14px 18px;
  background: #f7f4ec;
  border-bottom: 1px solid var(--border);
}
.sla th[scope="row"] {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 15.5px;
  font-weight: 600;
  color: var(--navy);
  text-align: left;
}
.sla th[scope="row"], .sla td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--paper-deep);
  font-size: 15.5px;
  color: var(--ink);
  vertical-align: top;
}
.sla tbody tr:last-child th, .sla tbody tr:last-child td { border-bottom: 0; }
.sla b { font-family: Georgia, serif; color: var(--navy); }

@media (max-width: 759px) {
  .sla thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .sla, .sla tbody, .sla tr, .sla th, .sla td { display: block; }
  .sla tr { border-bottom: 1px solid var(--border); padding: 6px 0; }
  .sla tbody tr:last-child { border-bottom: 0; }
  .sla th[scope="row"] { padding-bottom: 6px; border-bottom: 0; }
  .sla td { border-bottom: 0; padding: 4px 18px; }
  .sla td::before {
    content: attr(data-label) " — ";
    color: var(--muted);
    font-size: 13px;
  }
}

/* ---------- callout ---------- */

.callout {
  background: var(--navy);
  color: #e9edf4;
  border-radius: 10px;
  padding: 26px;
  display: grid;
  gap: 18px;
  align-items: center;
}
@media (min-width: 760px) { .callout { grid-template-columns: 1fr auto; gap: 30px; } }
.callout__title { color: #ffffff; font-size: 20px; margin: 0 0 8px; }
.callout__body { color: #c3cedf; font-size: 15.5px; margin: 0; max-width: 42em; }
.callout__action { margin: 0; }
.btn--gold { background: var(--gold); color: #16223a; font-weight: 600; }

/* ---------- platform matrix ---------- */

.plat { display: grid; gap: 14px; }
@media (min-width: 620px) { .plat { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .plat { grid-template-columns: repeat(5, 1fr); } }

.plat__cell {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 16px;
}
.plat__key {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 8px;
}
.plat__val { font-size: 15.5px; color: var(--navy); font-weight: 500; margin: 0; }
.plat__val span { display: block; font-weight: 400; color: var(--ink-soft); font-size: 14px; margin-top: 4px; }

/* ---------- pricing ---------- */

.pricing { display: grid; gap: 26px; }
@media (min-width: 880px) { .pricing { grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: start; } }

.pricing__text p { font-size: 16.5px; line-height: 1.72; color: var(--ink-soft); }

.pricing__box { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 24px; }
.pricing__boxtitle { font-size: 18px; margin: 0 0 10px; }
.pricing__boxlede { font-size: 15.5px; color: var(--ink-soft); margin: 0 0 12px; }
.pricing__box .ticks { margin-bottom: 18px; }

/* ---------- steps ---------- */

.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; }
@media (min-width: 860px) { .steps { grid-template-columns: repeat(4, 1fr); gap: 26px; } }
.step__num { font-family: Georgia, serif; font-weight: 600; font-size: 15px; color: var(--gold); margin: 0 0 8px; }
.step__title { font-size: 17px; margin: 0 0 6px; }
.step p:last-child { font-size: 15.5px; color: var(--ink-soft); }

/* ---------- how we work ---------- */

@media (min-width: 760px) {
  .grid--2 { grid-template-columns: repeat(2, 1fr); gap: 32px 40px; }
}

.principle__title { font-size: 20px; margin: 0 0 8px; }
.principle p { font-size: 16px; line-height: 1.7; color: var(--ink-soft); }

/* ---------- about ---------- */

.bio {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 26px;
  display: grid;
  gap: 24px;
  box-shadow: 0 1px 2px rgba(15, 34, 64, 0.04);
}
@media (min-width: 860px) { .bio { grid-template-columns: 1.15fr 1fr; gap: 40px; } }

.bio__name { font-size: 25px; margin: 0 0 4px; }
.bio__role {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 14px;
}
.bio__main p:last-child { font-size: 16.5px; line-height: 1.72; color: var(--ink-soft); }
.bio__side { border-left: 2px solid var(--border); padding-left: 20px; }

.prose { max-width: 48em; }
.prose p { font-size: 16.5px; line-height: 1.75; color: var(--ink-soft); }

/* ---------- contact ---------- */

.contact { display: grid; gap: 28px; }
@media (min-width: 900px) { .contact { grid-template-columns: 1.25fr 0.75fr; gap: 44px; align-items: start; } }

.form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 24px;
  box-shadow: 0 1px 2px rgba(15, 34, 64, 0.04);
}

.form__row { display: grid; gap: 0; }
@media (min-width: 620px) { .form__row { grid-template-columns: 1fr 1fr; gap: 0 18px; } }

.field { margin-bottom: 16px; }

.field__label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 6px;
}
.field__opt { font-weight: 400; color: var(--muted); font-size: 13px; }

.field__input {
  width: 100%;
  font: inherit;
  font-size: 16px;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--border-soft);
  border-radius: 4px;
  padding: 11px 12px;
  min-height: 46px;
}
.field__input::placeholder { color: var(--muted); }
.field__input--area { min-height: 120px; resize: vertical; }
.field__input:focus-visible {
  outline: 3px solid var(--navy);
  outline-offset: 1px;
  border-color: var(--navy);
}

/* Honeypot. Off-screen rather than display:none, which bots detect and skip. */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form__actions { margin: 20px 0 0; }
.form__actions .btn { width: 100%; cursor: pointer; border: 0; font: inherit; font-size: 16px; font-weight: 600; }
@media (min-width: 620px) { .form__actions .btn { width: auto; } }
.form__actions .btn[disabled] { opacity: 0.6; cursor: progress; }

.result { border-radius: 10px; padding: 24px; border: 1px solid var(--border); }
.result--ok { background: var(--surface); border-left: 3px solid var(--gold); }
.result--bad { background: var(--surface); border-left: 3px solid #9c3b2e; }
.result__title { font-size: 21px; margin: 0 0 8px; }
.result p { font-size: 16px; color: var(--ink-soft); margin: 0; }

.contact__side { border-left: 2px solid var(--border); padding-left: 20px; }
.next { margin: 0 0 18px; padding-left: 20px; }
.next li { font-size: 15.5px; line-height: 1.55; color: var(--ink-soft); margin-bottom: 8px; }

/* ---------- privacy ---------- */

.privacy__h { font-size: 19px; margin: 28px 0 8px; }
.privacy__h:first-child { margin-top: 0; }

/* ---------- centring, declared last ---------- */

/* `.hero__title { margin: 0 0 18px; }` and friends write the margin shorthand,
   which resets margin-left/right to 0 at equal specificity and silently drops
   the block out of its centred column. Re-asserting the longhands here, after
   every component rule, is what keeps those columns centred. Guarded by
   tests/test_centring.py. */
.band > *,
.hero > * { margin-left: auto; margin-right: auto; }
