/* ==========================================================================
   XBITIUM SECURITY — styles.css
   Design language: "inspection report", not "hacker basement".
   The palette IS the CVSS severity scale — the honest vernacular of
   vulnerability management. We brand with our own instrument.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. TOKENS
   -------------------------------------------------------------------------- */
:root {
  /* Surfaces — cool slate, never pure black (pure black reads cheap) */
  --ink:        #0D1418;
  --slate:      #16232B;
  --slate-2:    #22343E;
  --paper:      #F7F9FA;
  --mist:       #E4E9EC;
  --mist-2:     #CFD8DD;

  /* Text */
  --text:       #0D1418;
  --text-soft:  #4C5F6B;
  --text-inv:   #EAF0F3;
  --text-inv-soft: #9FB3BE;

  /* CVSS severity scale — this is the brand */
  --sev-crit:   #C0392B;
  --sev-high:   #E07A2B;
  --sev-med:    #D9A521;
  --sev-low:    #17B39B;
  --sev-info:   #5A7A99;

  --accent:     #17B39B;   /* teal = closed, safe, verified */
  --accent-ink: #0B6F62;

  /* Type */
  --display: "Newsreader", Georgia, serif;
  --body:    "IBM Plex Sans", system-ui, -apple-system, sans-serif;
  --mono:    "IBM Plex Mono", ui-monospace, monospace;

  /* Rhythm */
  --gutter: clamp(1.25rem, 4vw, 4rem);
  --radius: 4px;          /* near-square. Instruments are not rounded. */
  --radius-lg: 8px;
  --maxw: 1200px;
}

/* --------------------------------------------------------------------------
   2. RESET / BASE
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
  background: var(--paper);
  color: var(--text);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
img, svg { display: block; }

/* Accessible focus ring — non-negotiable on a security site */
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

h1, h2, h3 { font-family: var(--display); font-weight: 500; line-height: 1.1; letter-spacing: -0.015em; }
h1 { font-size: clamp(2.6rem, 6vw, 4.4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: 1.3rem; }
em { font-style: italic; }

/* Reusable eyebrow label */
.eyebrow {
  font-family: var(--mono);
  font-size: .72rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .16em;
  color: var(--accent-ink);
  margin-bottom: 1rem;
}
.mono { font-family: var(--mono); }

/* --------------------------------------------------------------------------
   3. STATUS BAR + NAV
   -------------------------------------------------------------------------- */
.statusbar {
  background: var(--ink);
  color: var(--text-inv-soft);
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .04em;
  padding: .5rem var(--gutter);
  display: flex;
  align-items: center;
  gap: .6rem;
}
.statusbar .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent);
  animation: pulse 2.4s infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(23,179,155,.6); }
  70%  { box-shadow: 0 0 0 6px rgba(23,179,155,0); }
  100% { box-shadow: 0 0 0 0 rgba(23,179,155,0); }
}
.statusbar .sep { opacity: .35; }

.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem;
  padding: 1rem var(--gutter);
  background: rgba(247,249,250,.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--mist);
}
.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--ink); }
.brand-mark { display: grid; place-items: center; color: var(--accent-ink); }
.brand-text { font-family: var(--display); font-size: 1.35rem; font-weight: 600; letter-spacing: -.02em; }
.brand-text em { font-style: normal; font-weight: 400; color: var(--text-soft); }

.nav-links { display: flex; gap: 1.75rem; }
.nav-links a {
  text-decoration: none;
  font-size: .92rem;
  font-weight: 500;
  color: var(--text-soft);
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
  transition: color .18s, border-color .18s;
}
.nav-links a:hover { color: var(--ink); border-color: var(--accent); }

/* --------------------------------------------------------------------------
   4. BUTTONS
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: .5rem;
  padding: .85rem 1.5rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-family: var(--body);
  font-size: .95rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: transform .15s, background .18s, color .18s, border-color .18s;
}
.btn:active { transform: translateY(1px); }
.btn-sm { padding: .55rem 1rem; font-size: .88rem; }
.btn-block { width: 100%; }

.btn-primary { background: var(--ink); color: var(--text-inv); }
.btn-primary:hover { background: var(--accent-ink); }

.btn-ghost { background: transparent; color: var(--ink); border-color: var(--mist-2); }
.btn-ghost:hover { border-color: var(--ink); background: #fff; }

/* --------------------------------------------------------------------------
   5. HERO
   -------------------------------------------------------------------------- */
.hero {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(3rem, 8vw, 6rem) var(--gutter);
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.hero h1 { margin-bottom: 1.5rem; }
.hero h1 em { font-style: italic; color: var(--sev-crit); } /* the one red word on the page */

.lede { font-size: 1.12rem; color: var(--text-soft); max-width: 46ch; margin-bottom: 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-bottom: 1.25rem; }
.hero-note { font-family: var(--mono); font-size: .78rem; color: var(--text-soft); letter-spacing: .03em; }

/* ---- SIGNATURE: the finding card ---- */
.finding {
  background: #fff;
  border: 1px solid var(--mist-2);
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 50px -30px rgba(13,20,24,.35);
  overflow: hidden;
}
.finding-head, .finding-foot {
  display: flex; justify-content: space-between; align-items: center;
  padding: .7rem 1.1rem;
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .04em;
}
.finding-head { background: var(--ink); color: var(--text-inv-soft); }
.finding-foot { background: var(--paper); border-top: 1px solid var(--mist); color: var(--text-soft); }
.finding-body { padding: 1.4rem 1.1rem; transition: opacity .3s; }
.finding-body.swapping { opacity: .25; transition: opacity .2s; }

.finding-sev { display: flex; align-items: baseline; gap: .6rem; margin-bottom: .75rem; }
.sev-chip {
  font-family: var(--mono); font-size: .68rem; font-weight: 600;
  letter-spacing: .12em;
  padding: .25rem .5rem;
  border-radius: 2px;
  color: #fff;
  background: var(--sev-crit);   /* JS overrides per finding */
}
.sev-score { font-family: var(--display); font-size: 2rem; font-weight: 600; line-height: 1; }
.sev-label { font-family: var(--mono); font-size: .7rem; color: var(--text-soft); letter-spacing: .1em; }

.meter { height: 5px; background: var(--mist); border-radius: 999px; overflow: hidden; margin-bottom: 1.1rem; }
.meter-fill {
  height: 100%; width: 0;
  background: var(--sev-crit);
  border-radius: 999px;
  transition: width .7s cubic-bezier(.2,.8,.2,1), background .5s;
}

.finding-title { font-size: 1.22rem; margin-bottom: .5rem; }
.finding-desc { font-size: .93rem; color: var(--text-soft); margin-bottom: 1.1rem; }

.finding-meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem; margin-bottom: 1.1rem; }
.finding-meta dt {
  font-family: var(--mono); font-size: .62rem; text-transform: uppercase;
  letter-spacing: .12em; color: var(--text-soft); margin-bottom: .2rem;
}
.finding-meta dd { font-family: var(--mono); font-size: .82rem; font-weight: 500; }

.finding-fix {
  border-left: 3px solid var(--accent);
  background: rgba(23,179,155,.06);
  padding: .75rem .9rem;
  border-radius: 0 var(--radius) var(--radius) 0;
}
.fix-tag {
  display: block;
  font-family: var(--mono); font-size: .62rem; text-transform: uppercase;
  letter-spacing: .12em; color: var(--accent-ink); margin-bottom: .25rem;
}
.finding-fix p { font-size: .9rem; }

/* --------------------------------------------------------------------------
   6. AUDIENCE STRIP
   -------------------------------------------------------------------------- */
.strip {
  border-top: 1px solid var(--mist);
  border-bottom: 1px solid var(--mist);
  background: #fff;
  padding: 2rem var(--gutter);
}
.strip-label {
  max-width: var(--maxw); margin: 0 auto .9rem;
  font-family: var(--mono); font-size: .68rem; text-transform: uppercase;
  letter-spacing: .14em; color: var(--text-soft);
}
.strip-list {
  max-width: var(--maxw); margin: 0 auto;
  list-style: none; padding: 0;
  display: flex; flex-wrap: wrap; gap: .5rem;
}
.strip-list li {
  font-size: .88rem; font-weight: 500;
  padding: .4rem .8rem;
  border: 1px solid var(--mist-2);
  border-radius: 999px;
}

/* --------------------------------------------------------------------------
   7. SECTIONS
   -------------------------------------------------------------------------- */
.section { max-width: var(--maxw); margin: 0 auto; padding: clamp(4rem, 9vw, 7rem) var(--gutter); }
.section-head { max-width: 60ch; margin-bottom: 3rem; }
.section-head h2 { margin-bottom: .9rem; }
.section-sub { color: var(--text-soft); font-size: 1.05rem; }

/* Dark section breaks the page rhythm and frames the process as "the method" */
.section-dark {
  max-width: none;
  background: var(--ink);
  color: var(--text-inv);
}
.section-dark > * { max-width: var(--maxw); margin-left: auto; margin-right: auto; }
.section-dark .eyebrow { color: var(--accent); }
.section-dark .section-sub { color: var(--text-inv-soft); }

/* --- Service cards --- */
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
.card {
  background: #fff;
  border: 1px solid var(--mist-2);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  position: relative;
  transition: border-color .2s, transform .2s, box-shadow .2s;
}
.card:hover {
  border-color: var(--ink);
  transform: translateY(-2px);
  box-shadow: 0 18px 36px -26px rgba(13,20,24,.4);
}
/* The anchor offer gets a severity rail. Visual hierarchy = sales hierarchy. */
.card-anchor { border-left: 4px solid var(--accent); }
.card-flag {
  position: absolute; top: 1.1rem; right: 1.1rem;
  font-family: var(--mono); font-size: .6rem; text-transform: uppercase;
  letter-spacing: .12em;
  background: var(--accent); color: #fff;
  padding: .22rem .45rem; border-radius: 2px;
}
.card h3 { margin-bottom: .25rem; }
.card-sub { font-family: var(--mono); font-size: .78rem; color: var(--accent-ink); margin-bottom: .9rem; }
.card > p { color: var(--text-soft); font-size: .95rem; margin-bottom: 1.1rem; }

/* --- Tick lists --- */
.ticks { list-style: none; padding: 0; display: grid; gap: .5rem; }
.ticks li { position: relative; padding-left: 1.5rem; font-size: .92rem; }
.ticks li::before {
  content: "";
  position: absolute; left: 0; top: .5em;
  width: 8px; height: 8px;
  border-left: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}

/* --- Steps --- */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.step { border-top: 1px solid var(--slate-2); padding-top: 1.25rem; }
.step-n {
  display: block;
  font-family: var(--mono); font-size: .8rem; font-weight: 600;
  color: var(--accent); letter-spacing: .1em; margin-bottom: .75rem;
}
.step h3 { margin-bottom: .5rem; color: var(--text-inv); }
.step p { font-size: .92rem; color: var(--text-inv-soft); }

/* --------------------------------------------------------------------------
   8. PRICING
   -------------------------------------------------------------------------- */
.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; align-items: start; }
.tier {
  background: #fff;
  border: 1px solid var(--mist-2);
  border-radius: var(--radius-lg);
  padding: 1.9rem 1.6rem;
  display: grid;
  gap: 1.1rem;
}
.tier-featured {
  border: 2px solid var(--ink);
  box-shadow: 0 24px 50px -32px rgba(13,20,24,.5);
  position: relative;
}
.tier-flag {
  position: absolute; top: -.7rem; left: 1.6rem;
  background: var(--ink); color: #fff;
  font-family: var(--mono); font-size: .6rem; text-transform: uppercase;
  letter-spacing: .1em;
  padding: .3rem .6rem; border-radius: 2px;
}
.tier-for { font-size: .85rem; color: var(--text-soft); margin-top: -.7rem; }
.tier-price { font-family: var(--display); font-size: 3rem; font-weight: 600; line-height: 1; }
.tier-cur { font-size: 1.5rem; vertical-align: super; }
.tier-per { font-family: var(--body); font-size: .9rem; font-weight: 400; color: var(--text-soft); }
.tier-foot { margin-top: 2rem; text-align: center; color: var(--text-soft); font-size: .95rem; }

/* --------------------------------------------------------------------------
   9. CTA + FORM
   -------------------------------------------------------------------------- */
.section-cta {
  max-width: none;
  background: var(--ink);
  color: var(--text-inv);
}
.cta-grid {
  max-width: var(--maxw); margin-left: auto; margin-right: auto;
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.section-cta .eyebrow { color: var(--accent); }
.section-cta h2 { margin-bottom: 1rem; }
.cta-copy > p { color: var(--text-inv-soft); margin-bottom: 1.5rem; }

.lead {
  background: var(--slate);
  border: 1px solid var(--slate-2);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  display: grid; gap: 1rem;
}
.field { display: grid; gap: .35rem; }
.field label {
  font-family: var(--mono); font-size: .68rem; text-transform: uppercase;
  letter-spacing: .1em; color: var(--text-inv-soft);
}
.field .opt { text-transform: none; letter-spacing: 0; opacity: .6; }
.field input, .field textarea {
  background: var(--ink);
  border: 1px solid var(--slate-2);
  border-radius: var(--radius);
  color: var(--text-inv);
  font-family: var(--body); font-size: .95rem;
  padding: .7rem .8rem;
  transition: border-color .18s;
  resize: vertical;
}
.field input::placeholder, .field textarea::placeholder { color: #637984; }
.field input:focus, .field textarea:focus { border-color: var(--accent); outline: none; }

.section-cta .btn-primary { background: var(--accent); color: var(--ink); }
.section-cta .btn-primary:hover { background: #21cfb5; }

/* Honeypot — visually gone, still in the DOM for bots to fall into */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.lead-status { font-family: var(--mono); font-size: .8rem; min-height: 1.2em; }
.lead-status.ok  { color: var(--accent); }
.lead-status.err { color: #FF7A6B; }
.lead-legal { font-size: .74rem; color: var(--text-inv-soft); opacity: .7; line-height: 1.5; }

/* --------------------------------------------------------------------------
   10. FAQ
   -------------------------------------------------------------------------- */
.faq { display: grid; gap: 0; border-top: 1px solid var(--mist-2); }
.faq details { border-bottom: 1px solid var(--mist-2); }
.faq summary {
  cursor: pointer; list-style: none;
  padding: 1.15rem 2rem 1.15rem 0;
  font-family: var(--display); font-size: 1.2rem; font-weight: 500;
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
/* Plus/minus built from type — no icon font, no dependency */
.faq summary::after {
  content: "+";
  position: absolute; right: .25rem; top: 50%; transform: translateY(-50%);
  font-family: var(--mono); font-size: 1.3rem; color: var(--accent-ink);
}
.faq details[open] summary::after { content: "\2212"; }
.faq details p { padding: 0 3rem 1.4rem 0; color: var(--text-soft); font-size: .98rem; }

/* --------------------------------------------------------------------------
   11. FOOTER
   -------------------------------------------------------------------------- */
.footer {
  background: var(--ink); color: var(--text-inv-soft);
  padding: clamp(3rem, 6vw, 4.5rem) var(--gutter) 2rem;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2.5rem;
}
.footer-brand .brand-text { color: var(--text-inv); display: block; margin-bottom: .75rem; }
.footer-brand .brand-text em { color: var(--text-inv-soft); }
.footer-brand p { font-size: .9rem; max-width: 42ch; }
.footer-col h4 {
  font-family: var(--mono); font-size: .68rem; text-transform: uppercase;
  letter-spacing: .12em; color: var(--accent); margin-bottom: .9rem; font-weight: 500;
}
.footer-col a {
  display: block; text-decoration: none; font-size: .9rem;
  padding: .25rem 0; transition: color .18s;
}
.footer-col a:hover { color: var(--text-inv); }
.footer-legal {
  grid-column: 1 / -1;
  border-top: 1px solid var(--slate-2);
  margin-top: 1rem; padding-top: 1.5rem;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: .75rem;
  font-family: var(--mono); font-size: .72rem;
}

/* --------------------------------------------------------------------------
   12. RESPONSIVE
   -------------------------------------------------------------------------- */
@media (max-width: 1000px) {
  .hero { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .tiers { grid-template-columns: 1fr; }
  .cta-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .footer { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .cards { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .footer { grid-template-columns: 1fr; }
  .hide-sm { display: none; }
  .finding-meta { grid-template-columns: 1fr 1fr; }
}
