/* ==========================================================================
   /security.html — page-specific styles
   --------------------------------------------------------------------------
   Namespace: .sp-*  (security page).
   Reuses .page-hero, .sec, .lp-shell, .sec__eyebrow, .sec__h2, .sec__lede
   from sections.css. Only blocks unique to this page live here.
   ========================================================================== */

/* ---- Hero ---------------------------------------------------------------- */

/* No hero background — the rest of the site (connectors, landing pages,
   etc.) uses a uniform page bg and the hero is delineated only by the
   .sec border-top below it. A tinted gradient on .page-hero gets clipped
   to the 1200px max-width of the page-hero shell, which made the hero
   read as a visibly different-width block from the sections beneath it. */
.sp-hero .page-hero__h1 { margin-bottom: 16px; }
.sp-hero .page-hero__lede { max-width: 720px; margin-bottom: 28px; }

.sp-hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}
.sp-hero__note {
  margin: 18px 0 0;
  font-size: 13.5px;
  color: var(--color-text-tertiary);
  line-height: 1.55;
}
.sp-hero__note a {
  color: var(--color-text-tertiary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Buttons used in the hero. Match the .sp-cta__btn family below in shape
   but the primary uses the dark-navy fill (vs the white primary used on
   the dark-navy footer CTA — opposite contexts, same teal accent). */
.sp-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 18px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: background 150ms ease, border-color 150ms ease, color 150ms ease;
}
.sp-btn--primary {
  background: var(--color-navy-800);
  color: white;
  border: 0.5px solid var(--color-navy-800);
}
.sp-btn--primary:hover {
  background: var(--color-navy-700);
  border-color: var(--color-navy-700);
}
.sp-btn--secondary {
  background: var(--color-bg);
  color: var(--color-navy-800);
  border: 0.5px solid var(--color-border);
}
.sp-btn--secondary:hover {
  border-color: var(--color-navy-800);
}

/* ---- Compliance & certifications ---------------------------------------- */

.sp-comp__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}
.sp-cert {
  background: var(--color-bg);
  border: var(--border-thin);
  border-radius: var(--radius-lg);
  padding: 20px;
}
.sp-cert__head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.sp-cert__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-md);
  background: var(--color-teal-50);
  color: var(--color-teal-900);
  flex-shrink: 0;
}
.sp-cert__icon svg { width: 16px; height: 16px; }
.sp-cert__title {
  margin: 0;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-navy-800);
}
.sp-cert__d {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--color-text-secondary);
}
.sp-comp__caption {
  margin: 24px 0 0;
  padding-top: 24px;
  border-top: var(--border-thin);
  font-size: 13px;
  line-height: 1.55;
  color: var(--color-text-secondary);
}

/* ---- Data handling: retention table + callout --------------------------- */

.sp-retention {
  background: var(--color-bg-tint);
  border-radius: var(--radius-lg);
  padding: 8px 24px;
  margin: 24px 0 16px;
}
.sp-retention__row {
  display: grid;
  grid-template-columns: 1fr 130px 1.6fr;
  gap: 20px;
  padding: 16px 0;
  border-bottom: 0.5px solid var(--color-border);
  align-items: start;
}
.sp-retention__row:last-child { border-bottom: 0; }
.sp-retention__row--head {
  padding: 14px 0 12px;
}
.sp-retention__head {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-tertiary);
}
.sp-retention__label {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-navy-800);
}
.sp-retention__pill-cell { display: flex; align-items: flex-start; }
.sp-retention__notes {
  font-size: 13px;
  line-height: 1.55;
  color: var(--color-text-secondary);
}

/* Persistence pills — three states. Each carries a soft-tint background
   with a darker text color from the same hue family. */
.sp-pill {
  display: inline-block;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  font-size: 11px;
  font-weight: 500;
  white-space: nowrap;
}
.sp-pill--teal  { background: var(--color-teal-50); color: var(--color-teal-1000); }
.sp-pill--amber { background: #FAEEDA; color: #412402; }
.sp-pill--pink  { background: #FBEAF0; color: #4B1528; }

.sp-callout {
  margin: 16px 0 0;
  padding: 14px 18px;
  background: var(--color-teal-50);
  border-radius: var(--radius-md);
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--color-text-secondary);
}
.sp-callout strong {
  color: var(--color-teal-1000);
  font-weight: 500;
}

/* ---- Generic card grids (architecture, encryption, testing, incident) --- */

.sp-card-grid {
  display: grid;
  gap: 16px;
  margin-top: 16px;
}
.sp-card-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.sp-card-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* List card — title at the top, bulleted list below. Used by Architecture,
   Authentication's two sub-cards, Incident response. */
.sp-list-card {
  background: var(--color-bg);
  border: var(--border-thin);
  border-radius: var(--radius-lg);
  padding: 22px 24px;
}
.sp-list-card__title {
  margin: 0 0 12px;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-navy-800);
}
/* Restore disc bullets — base.css globally sets list-style:none. The
   security page is content-heavy and bullet markers aid scanability. */
.sp-list-card__list {
  margin: 0;
  padding: 0 0 0 18px;
  list-style: disc;
  font-size: 13px;
  line-height: 1.7;
  color: var(--color-text-secondary);
}
.sp-list-card__list li {
  padding: 2px 0;
  padding-left: 4px;
}
.sp-list-card__list::marker,
.sp-list-card__list li::marker { color: var(--color-text-tertiary); }

/* Eyebrow card — used by the Encryption section. Same shell as
   .sp-list-card but with an uppercase tracked eyebrow as the header
   instead of an h3. */
.sp-eyebrow-card {
  background: var(--color-bg);
  border: var(--border-thin);
  border-radius: var(--radius-lg);
  padding: 22px 24px;
}
.sp-eyebrow-card__eyebrow {
  margin: 0 0 12px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-tertiary);
}

/* Big-number card — used by Testing & audit. Cadence (Monthly / Every
   build / Periodic) reads as a hero number, with a body paragraph
   below. */
.sp-bignum-card {
  background: var(--color-bg);
  border: var(--border-thin);
  border-radius: var(--radius-lg);
  padding: 24px 26px;
}
.sp-bignum-card__h {
  margin: 0 0 10px;
  font-size: 26px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--color-navy-800);
}
.sp-bignum-card__d {
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
  color: var(--color-text-secondary);
}

/* ---- Authentication & access control: roles container ------------------- */

.sp-roles {
  background: var(--color-bg-tint);
  border-radius: var(--radius-lg);
  padding: 22px 26px 12px;
  margin: 22px 0 24px;
}
.sp-roles__eyebrow {
  margin: 0 0 14px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-tertiary);
}
.sp-roles__row {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 20px;
  padding: 12px 0;
  border-bottom: 0.5px solid var(--color-border);
  align-items: center;
}
.sp-roles__row:last-child { border-bottom: 0; }
.sp-roles__name {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  color: var(--color-navy-800);
  background: none;
  padding: 0;
}
.sp-roles__desc {
  font-size: 13px;
  line-height: 1.55;
  color: var(--color-text-secondary);
}

/* ---- Responsible disclosure: out-of-scope card -------------------------- */

.sp-disclose__card {
  margin-top: 16px;
  padding: 22px 26px;
  background: var(--color-bg-tint);
  border: var(--border-thin);
  border-radius: var(--radius-lg);
}
.sp-disclose__title {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 500;
  color: var(--color-navy-800);
}
.sp-disclose__body {
  margin: 0 0 8px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--color-text-secondary);
}
.sp-disclose__body:last-child { margin-bottom: 0; }
.sp-disclose__link {
  color: var(--color-teal-600);
  font-weight: 500;
  text-decoration: none;
}
.sp-disclose__link:hover { text-decoration: underline; }

/* Inline "see also" link below the incident-response cards. */
.sp-incident__more {
  margin: 16px 0 0;
  font-size: 14px;
}
.sp-link {
  color: var(--color-teal-600);
  font-weight: 500;
  text-decoration: none;
}
.sp-link:hover { text-decoration: underline; }

/* ---- Footer CTA — dark navy, left-aligned, button row ------------------- */

.sp-cta {
  background: var(--color-navy-800);
  padding: 64px 24px;
  margin-top: 24px;
}
.sp-cta__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}
.sp-cta__h {
  margin: 0 0 14px;
  font-size: clamp(28px, 3.5vw, 36px);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: white;
}
.sp-cta__lede {
  margin: 0 0 24px;
  max-width: 720px;
  font-size: 15px;
  line-height: 1.55;
  color: var(--color-text-on-navy-muted);
}
.sp-cta__lede a {
  color: var(--color-text-on-navy);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.sp-cta__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.sp-cta__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  transition: background 150ms ease, border-color 150ms ease, color 150ms ease;
}
.sp-cta__btn--primary {
  background: white;
  color: var(--color-navy-800);
  border: 0.5px solid white;
}
.sp-cta__btn--primary:hover {
  background: var(--color-bg-tint);
}
.sp-cta__btn--secondary {
  background: rgba(255, 255, 255, 0.06);
  color: white;
  border: 0.5px solid rgba(255, 255, 255, 0.15);
}
.sp-cta__btn--secondary:hover {
  background: rgba(255, 255, 255, 0.10);
  border-color: rgba(255, 255, 255, 0.30);
}

/* ---- Section rhythm overrides ------------------------------------------- */

/* The .sec default has top: var(--border-thin) which already gives us the
   between-section dividers the spec calls for. No extra rules needed. */

/* Ensure the sec lede has consistent margin under the H2 inside this page. */
.sp-data .sec__lede,
.sp-arch .sec__lede,
.sp-auth .sec__lede,
.sp-enc .sec__lede,
.sp-test .sec__lede,
.sp-incident .sec__lede,
.sp-disclose .sec__lede {
  max-width: 820px;
  margin: 12px 0 24px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--color-text-secondary);
}

/* ---- Responsive --------------------------------------------------------- */

@media (max-width: 1000px) {
  .sp-comp__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sp-card-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 700px) {
  .sp-hero .page-hero__inner { padding-left: 24px; padding-right: 24px; }
  .sp-hero__cta { flex-direction: column; align-items: stretch; }
  .sp-btn { justify-content: center; }
  .sp-comp__grid { grid-template-columns: 1fr; }
  .sp-card-grid--2,
  .sp-card-grid--3 { grid-template-columns: 1fr; }
  .sp-retention { padding: 4px 16px; }
  .sp-retention__row {
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 14px 0;
  }
  .sp-retention__row--head { display: none; }
  .sp-retention__pill-cell { margin: 2px 0 4px; }
  .sp-roles { padding: 18px 18px 6px; }
  .sp-roles__row {
    grid-template-columns: 1fr;
    gap: 4px;
    padding: 10px 0;
  }
  .sp-cta { padding: 48px 16px; }
  .sp-cta__inner { padding: 0 16px; }
}
