/* ---------------------------------------------------------------------------
   PlainScore IT Compliance and Security Group — design tokens
--------------------------------------------------------------------------- */
:root {
  --bg: #0b0f14;
  --bg-raised: #121820;
  --bg-card: #161d27;
  --border: #232c38;
  --text: #e7edf3;
  --text-muted: #97a3b3;
  --accent: #3dd9d6;
  --accent-strong: #1fb8b5;
  --accent-contrast: #06171a;
  --danger: #ff6b6b;
  --success: #4ade80;
  --radius: 10px;
  --max-width: 1240px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { color-scheme: dark; }

body {
  margin: 0;
  background-color: var(--bg);
  background-image:
    radial-gradient(680px circle at 0% 8%, rgba(61, 217, 214, 0.10), transparent 60%),
    radial-gradient(680px circle at 100% 92%, rgba(61, 217, 214, 0.08), transparent 60%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='42' height='42'%3E%3Cpath d='M42 0H0V42' fill='none' stroke='%233dd9d6' stroke-opacity='0.14' stroke-width='1'/%3E%3Ccircle cx='0' cy='0' r='1.4' fill='%233dd9d6' fill-opacity='0.22'/%3E%3C/svg%3E");
  background-repeat: no-repeat, no-repeat, repeat;
  background-attachment: fixed, fixed, fixed;
  background-position: left top, right bottom, center;
  background-size: auto, auto, 42px 42px;
  color: var(--text);
  font-family: var(--font);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; }

a {
  color: var(--accent);
  text-decoration: none;
}
a:hover { text-decoration: underline; }

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

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--accent);
  color: var(--accent-contrast);
  padding: 0.75rem 1rem;
  z-index: 1000;
  border-radius: 0 0 6px 0;
}
.skip-link:focus {
  left: 0;
}

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Decorative vertical rails in the side gutters on very wide viewports, so the
   margin outside .wrap reads as designed space rather than empty background. */
@media (min-width: 1500px) {
  body::before,
  body::after {
    content: "";
    position: fixed;
    top: 0;
    bottom: 0;
    width: 1px;
    background: repeating-linear-gradient(180deg, rgba(61, 217, 214, 0.3) 0 6px, transparent 6px 18px);
    pointer-events: none;
    z-index: 0;
  }
  body::before { left: 36px; }
  body::after { right: 36px; }
}

/* ---------------------------------------------------------------------------
   Header / nav
--------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 15, 20, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.brand {
  display: flex;
  align-items: center;
}
.brand:hover { text-decoration: none; }
.brand__logo { height: 40px; width: auto; display: block; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 6px;
  cursor: pointer;
}
.nav-toggle__bar {
  display: block;
  height: 2px;
  margin: 0 8px;
  background: var(--text);
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}
.primary-nav a {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.95rem;
}
.primary-nav a:hover { color: var(--text); text-decoration: none; }

.primary-nav__cta {
  color: var(--accent-contrast) !important;
  background: var(--accent);
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-weight: 600;
}
.primary-nav__cta:hover {
  background: var(--accent-strong);
}

@media (max-width: 820px) {
  .nav-toggle { display: flex; }
  .primary-nav {
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--bg-raised);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem 1.5rem 1rem;
    display: none;
  }
  .primary-nav.is-open { display: flex; }
  .primary-nav a { padding: 0.75rem 0; border-bottom: 1px solid var(--border); }
  .primary-nav__cta { margin-top: 0.75rem; text-align: center; }
}

/* ---------------------------------------------------------------------------
   Hero / sections
--------------------------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 5rem 0 4rem;
  background:
    radial-gradient(circle at 15% 20%, rgba(61, 217, 214, 0.10), transparent 45%),
    radial-gradient(circle at 85% 0%, rgba(61, 217, 214, 0.08), transparent 40%);
  border-bottom: 1px solid var(--border);
}
.hero__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
}
.hero__content { flex: 1 1 480px; }
.hero__art {
  position: relative;
  flex: 0 0 320px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero__art img {
  position: relative;
  z-index: 1;
  width: 62%;
  max-width: 220px;
  height: auto;
  filter: drop-shadow(0 0 28px rgba(61, 217, 214, 0.25));
}
.hero__art-ring {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  border: 1px dashed rgba(61, 217, 214, 0.3);
}
.hero__art-ring::before {
  content: "";
  position: absolute;
  inset: 30px;
  border-radius: 50%;
  border: 1px dashed rgba(61, 217, 214, 0.22);
}
@media (max-width: 900px) {
  .hero__art { display: none; }
}
.hero__eyebrow {
  display: inline-block;
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.8rem;
  margin-bottom: 1rem;
}
.hero h1 {
  font-size: clamp(2rem, 4vw, 3.1rem);
  line-height: 1.15;
  margin: 0 0 1.25rem;
  max-width: 18ch;
}
.hero p.lead {
  color: var(--text-muted);
  font-size: 1.15rem;
  max-width: 60ch;
  margin: 0 0 2rem;
}
.hero__actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

section { padding: 4rem 0; }
section.alt { background: var(--bg-raised); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.section-heading { max-width: 65ch; margin-bottom: 2.5rem; }
.section-heading__eyebrow {
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.78rem;
}
.section-heading h2 { margin: 0.4rem 0 0.75rem; font-size: clamp(1.5rem, 3vw, 2.1rem); }
.section-heading p { color: var(--text-muted); margin: 0; }

/* ---------------------------------------------------------------------------
   Grids / cards
--------------------------------------------------------------------------- */
.grid { display: grid; gap: 1.5rem; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
}
.card h3 { margin-top: 0.75rem; margin-bottom: 0.5rem; font-size: 1.15rem; }
.card p { color: var(--text-muted); margin: 0; }
.card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: rgba(61, 217, 214, 0.12);
  color: var(--accent);
}
.card__icon svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.service-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.service-card__link {
  margin-top: 1.25rem;
  font-weight: 600;
  font-size: 0.9rem;
}

/* ---------------------------------------------------------------------------
   Buttons
--------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
}
.btn:hover { text-decoration: none; }
.btn-primary {
  background: var(--accent);
  color: var(--accent-contrast);
}
.btn-primary:hover { background: var(--accent-strong); }
.btn-secondary {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn-secondary:hover { border-color: var(--accent); color: var(--accent); }

/* ---------------------------------------------------------------------------
   Lists
--------------------------------------------------------------------------- */
.check-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.75rem; }
.check-list li { display: flex; gap: 0.6rem; color: var(--text-muted); }
.check-list li::before {
  content: "";
  flex: none;
  width: 18px; height: 18px;
  margin-top: 3px;
  background: var(--accent);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") no-repeat center / contain;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") no-repeat center / contain;
}

/* Framework/label lists: name on its own line, description below, so entries of
   very different name lengths (e.g. "HIPAA" vs "NIST SP 800-53 / NIST CSF 2.0")
   still line up in a clean, even column instead of wrapping raggedly inline. */
.check-list--framework li > div { display: flex; flex-direction: column; gap: 0.15rem; }
.check-list--framework li strong { color: var(--text); }
.check-list--framework li span { color: var(--text-muted); font-size: 0.92rem; }
.check-list--framework li::before { margin-top: 4px; }

/* ---------------------------------------------------------------------------
   Page header (interior pages)
--------------------------------------------------------------------------- */
.page-header {
  position: relative;
  overflow: hidden;
  padding: 3.5rem 0 2.5rem;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(61,217,214,0.06), transparent);
}
.page-header__eyebrow {
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.78rem;
}
.page-header h1 { margin: 0.5rem 0 0.75rem; font-size: clamp(1.75rem, 3.5vw, 2.6rem); }
.page-header p { color: var(--text-muted); max-width: 65ch; margin: 0; font-size: 1.05rem; }

.prose { max-width: 72ch; }
.prose h2 { margin-top: 2.5rem; }
.prose p { color: var(--text-muted); }
.prose ul { color: var(--text-muted); }

/* ---------------------------------------------------------------------------
   Forms
--------------------------------------------------------------------------- */
.form-grid { display: grid; gap: 1.25rem; max-width: 640px; }
.form-row { display: flex; flex-direction: column; gap: 0.4rem; }
.form-row label { font-weight: 600; font-size: 0.9rem; }
.form-row input,
.form-row select,
.form-row textarea {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 6px;
  padding: 0.7rem 0.85rem;
  font: inherit;
}
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}
.form-row textarea { resize: vertical; min-height: 140px; }
.field-validation-error, .validation-summary-errors {
  color: var(--danger);
  font-size: 0.85rem;
}
.validation-summary-errors ul { margin: 0; padding-left: 1.1rem; }
.input-validation-error { border-color: var(--danger) !important; }

.alert {
  padding: 1rem 1.25rem;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  border: 1px solid transparent;
}
.alert-success {
  background: rgba(74, 222, 128, 0.1);
  border-color: rgba(74, 222, 128, 0.4);
  color: var(--success);
}

/* Honeypot field: hidden from sighted users, still reachable by naive bots that
   fill in every field. Kept off-screen rather than display:none, which some
   spam scripts specifically skip. */
.hp-field {
  position: absolute;
  left: -5000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ---------------------------------------------------------------------------
   Footer
--------------------------------------------------------------------------- */
.site-footer {
  background: var(--bg-raised);
  border-top: 1px solid var(--border);
  margin-top: 3rem;
  padding-top: 3rem;
}
.site-footer__inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
  padding-bottom: 2rem;
}
.site-footer__col h2 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin: 0 0 0.9rem;
}
.footer-logo { height: 44px; width: auto; display: block; margin-bottom: 1rem; }
.site-footer__col p.footer-motto {
  color: var(--accent);
  font-style: italic;
  font-weight: 600;
}
.site-footer__col p { color: var(--text-muted); margin: 0.3rem 0; font-size: 0.92rem; }
.site-footer__col a { display: block; color: var(--text-muted); margin: 0.4rem 0; font-size: 0.92rem; }
.site-footer__col a:hover { color: var(--accent); }
.site-footer__legal {
  border-top: 1px solid var(--border);
  padding: 1.25rem 1.5rem;
  color: var(--text-muted);
  font-size: 0.85rem;
}
@media (max-width: 700px) {
  .site-footer__inner { grid-template-columns: 1fr; }
}

/* ---------------------------------------------------------------------------
   Legal pages: on-page nav, term list, comparison table, report quote,
   and the per-framework disclaimer cards on the Compliance service page
--------------------------------------------------------------------------- */
.legal-toc {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1rem;
  align-items: center;
  margin: 1.5rem 0 0.5rem;
  padding: 1rem 1.25rem;
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.92rem;
}
.legal-toc strong { color: var(--text); margin-right: 0.25rem; }
.legal-toc a { color: var(--text-muted); text-decoration: none; }
.legal-toc a:hover { color: var(--accent); text-decoration: underline; }

.prose h3 { margin-top: 2rem; margin-bottom: 0.5rem; font-size: 1.15rem; }
.prose ol { color: var(--text-muted); }
.prose a { color: var(--accent); }

.term-list { margin: 1rem 0 1.5rem; display: grid; gap: 0.75rem; }
.term-list dt { color: var(--text); font-weight: 700; }
.term-list dd { margin: 0.15rem 0 0; color: var(--text-muted); }

.table-scroll { overflow-x: auto; margin: 1.5rem 0 2rem; }
.legal-table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  font-size: 0.92rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.legal-table th, .legal-table td { text-align: left; vertical-align: top; padding: 0.7rem 0.85rem; border-bottom: 1px solid var(--border); }
.legal-table th { color: var(--text); background: var(--bg-raised); font-size: 0.8rem; letter-spacing: 0.06em; text-transform: uppercase; }
.legal-table td { color: var(--text-muted); }
.legal-table td:first-child { color: var(--text); font-weight: 600; white-space: nowrap; }
.legal-table td:first-child a { color: var(--accent); text-decoration: none; }
.legal-table td:first-child a:hover { text-decoration: underline; }
.legal-table tbody tr:last-child td { border-bottom: 0; }

.report-quote {
  margin: 1rem 0 1.25rem;
  padding: 1rem 1.25rem;
  border-left: 4px solid var(--accent);
  background: var(--bg-raised);
  border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--text);
  font-style: italic;
}

.notice {
  margin: 1.5rem 0 0;
  padding: 1rem 1.25rem;
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  background: var(--bg-raised);
  color: var(--text-muted);
  font-size: 0.95rem;
}
.notice a { color: var(--accent); }

.disclaimer-card h3 { margin-top: 0.25rem; }
.disclaimer-card p { margin: 0 0 0.6rem; }
.disclaimer-card p:last-child { margin-bottom: 0; }
.disclaimer-card__label {
  display: block;
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.15rem;
}
.disclaimer-card a { color: var(--accent); font-size: 0.9rem; }

/* ---------------------------------------------------------------------------
   Utility classes
   These replace inline style="..." attributes. The site's Content-Security-Policy
   sets style-src 'self' with no 'unsafe-inline', which blocks inline style
   attributes as well as <style> blocks, so styling must live here to take effect.
   --------------------------------------------------------------------------- */

.u-center { text-align: center; }

.u-flush-top { margin-top: 0; }

/* Centred supporting paragraph under a section heading. */
.u-lede {
  color: var(--text-muted);
  max-width: 60ch;
  margin: 0 auto 1.5rem;
}

/* Full-width call-to-action card: copy on the left, button on the right,
   stacking on narrow screens. */
.cta-band {
  padding: 2.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}
