/* ============================================================
   XFactor Audit — site styles (dark theme)
   Brand accents: blue #357DB7, wordmark "Audit" red #DB101D
   ============================================================ */

:root {
  --bg: #0a0c0f;
  --bg-alt: #0e1116;
  --surface: #13171e;
  --surface-2: #1a1f28;
  --border: #232a35;
  --border-strong: #303947;
  --text: #e7ebf1;
  --muted: #98a2b3;
  --faint: #6b7686;

  --red: #357db7;
  --red-bright: #5a9fd4;
  --red-deep: #245a85;
  --red-tint: rgba(53, 125, 183, 0.12);
  --red-line: rgba(53, 125, 183, 0.4);
  --brand-red: #db101d;

  --green: #2fae7e;

  --radius: 10px;
  --radius-sm: 6px;
  --maxw: 1120px;
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  --font-display: "Sora", var(--font-sans);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { color-scheme: dark; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; height: auto; }
a { color: var(--red-bright); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.2; margin: 0 0 .6em; }
h1 { font-size: clamp(2.1rem, 4.5vw, 3.2rem); font-weight: 700; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 650; }
h3 { font-size: 1.12rem; font-weight: 650; }
p { margin: 0 0 1rem; }
ul, ol { margin: 0 0 1rem; padding-left: 1.25rem; }
li { margin: .3rem 0; }
table { border-collapse: collapse; width: 100%; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--red-bright); outline-offset: 3px; }

/* ---------- layout ---------- */
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 1.5rem; }
.section { padding: 4.5rem 0; }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-tight { padding: 3rem 0; }
.grid { display: grid; gap: 1.25rem; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.split { display: grid; grid-template-columns: 1.1fr .9fr; gap: 3rem; align-items: center; }
.split.reverse > :first-child { order: 2; }

/* ---------- type ---------- */
.eyebrow {
  display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--red-bright); margin-bottom: .75rem;
}
.lead { font-size: 1.08rem; color: var(--muted); max-width: 640px; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.section-head { max-width: 720px; margin-bottom: 2.25rem; }
.section-head .lead { margin-bottom: 0; }
mark-red, .accent { color: var(--red-bright); }

/* ---------- badge ---------- */
.badge {
  display: inline-block; padding: .25rem .6rem; border-radius: 999px;
  font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  background: var(--red-tint); color: var(--red-bright); border: 1px solid var(--red-line);
}
.badge-neutral { background: var(--surface-2); color: var(--muted); border-color: var(--border-strong); }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10, 12, 15, .88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; gap: 1.5rem; height: 112px; }
.brand { display: flex; align-items: center; gap: .55rem; color: var(--text); font-weight: 700; }
.brand:hover { text-decoration: none; }
/* The lockup is baked artwork at its native 300x100 (3:1) size — display it
   at that original size so the mark and the wordmark keep their ratio. */
.brand img { width: 300px; height: 100px; max-width: 100%; display: block; flex: none; }
.site-nav { margin-left: auto; display: flex; align-items: center; gap: 2.1rem; }
.nav-links { display: flex; align-items: center; gap: 2.6rem; }
.site-nav a { color: var(--muted); font-size: .92rem; font-weight: 500; }
.site-nav a:hover { color: var(--text); text-decoration: underline;
  text-underline-offset: .32em; text-decoration-thickness: 1.5px; }
.nav-cta { margin-left: .5rem; }
.nav-toggle {
  display: none; margin-left: auto; background: none; border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm); color: var(--text); padding: .45rem .7rem; font-size: 1rem;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-block; padding: .7rem 1.25rem; border-radius: var(--radius-sm);
  font-weight: 600; font-size: .95rem; border: 1px solid transparent;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--red); color: #fff; box-shadow: 0 8px 24px rgba(53, 125, 183, .25); }
.btn-primary:hover { background: var(--red-bright); }
.btn-outline { border-color: var(--border-strong); color: var(--text); background: transparent; }
.btn-outline:hover { border-color: var(--red-line); background: var(--red-tint); }
.btn-ghost { color: var(--muted); padding-left: .5rem; padding-right: .5rem; }
.btn-ghost:hover { color: var(--text); }
.btn-sm { padding: .45rem .85rem; font-size: .85rem; }
.btn-block { display: block; width: 100%; text-align: center; }

/* ---------- hero ---------- */
.hero { position: relative; padding: 5.5rem 0 4.5rem; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(600px 320px at 85% -10%, rgba(53, 125, 183, .16), transparent 60%),
    radial-gradient(700px 400px at 15% 110%, rgba(53, 125, 183, .08), transparent 60%);
}
.hero .container { position: relative; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 3rem; align-items: center; }
.hero h1 { margin-bottom: 1.1rem; }
.hero .lead { font-size: 1.12rem; max-width: 560px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }
.hero-note { margin-top: 1.1rem; font-size: .85rem; color: var(--faint); }
.hero-panel {
  background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--radius);
  padding: 1.5rem; box-shadow: 0 24px 60px rgba(0, 0, 0, .45);
}
.hero-panel h3 { margin-bottom: .35rem; font-size: 1rem; }
.hero-panel .muted { font-size: .85rem; }
.score-rows { margin-top: 1.1rem; display: grid; gap: .6rem; }
.score-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: .7rem .9rem; }
.score-row .item { font-size: .88rem; font-weight: 600; }
.score-row .meta { font-size: .75rem; color: var(--faint); }
.pill { font-size: .72rem; font-weight: 700; padding: .2rem .55rem; border-radius: 999px; letter-spacing: .04em; }
.pill-pass { background: rgba(47, 174, 126, .15); color: var(--green); border: 1px solid rgba(47, 174, 126, .35); }
.pill-fail { background: var(--red-tint); color: var(--red-bright); border: 1px solid var(--red-line); }
.pill-warn { background: rgba(240, 180, 41, .12); color: #f0b429; border: 1px solid rgba(240, 180, 41, .3); }

/* ---------- cards ---------- */
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.5rem; display: flex; flex-direction: column; gap: .6rem;
}
.card:hover { border-color: var(--border-strong); }
.card h3 { margin: 0; }
.card p { color: var(--muted); font-size: .93rem; margin: 0; }
.card .icon {
  width: 42px; height: 42px; border-radius: 8px; display: grid; place-items: center;
  background: var(--red-tint); border: 1px solid var(--red-line); color: var(--red-bright); margin-bottom: .35rem;
}
.card .icon svg { width: 22px; height: 22px; }
.card ul { margin: .25rem 0 0; padding-left: 1.1rem; color: var(--muted); font-size: .9rem; }
.card.featured { border-color: var(--red-line); box-shadow: 0 0 0 1px var(--red-line) inset; }

/* ---------- lists with checks ---------- */
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: .65rem; }
.checks li { display: flex; gap: .65rem; align-items: flex-start; color: var(--muted); margin: 0; }
.checks li::before {
  content: ""; flex: none; width: 18px; height: 18px; margin-top: .18rem; border-radius: 50%;
  background: var(--red-tint); border: 1px solid var(--red-line);
}
.checks li strong { color: var(--text); }

/* ---------- tables ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
table.compare { min-width: 720px; font-size: .92rem; }
table.compare th, table.compare td { padding: .85rem 1rem; text-align: left; border-bottom: 1px solid var(--border); vertical-align: top; }
table.compare thead th { background: var(--surface-2); font-family: var(--font-display); font-size: .95rem; }
table.compare tbody tr:last-child td { border-bottom: none; }
table.compare td.dim { color: var(--muted); }
.td-yes { color: var(--green); font-weight: 700; }
.td-no { color: var(--faint); }

/* ---------- pricing ---------- */
.price-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; align-items: stretch; }
.price-card { display: flex; flex-direction: column; }
.price-card .price { font-family: var(--font-display); font-size: 1.9rem; font-weight: 700; margin: .15rem 0 0; }
.price-card .price small { font-size: .85rem; font-weight: 500; color: var(--faint); }
.price-card .btn { margin-top: auto; }
.price-card .tier { font-size: .8rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); }

/* ---------- steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem; counter-reset: step; }
.step { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.4rem; }
.step::before {
  counter-increment: step; content: counter(step);
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  background: var(--red); color: #fff; font-family: var(--font-display); font-weight: 700; margin-bottom: .8rem;
}
.step h3 { font-size: 1rem; }
.step p { font-size: .88rem; color: var(--muted); margin: 0; }

/* ---------- quote ---------- */
.quote { border-left: 3px solid var(--red); padding: .25rem 0 .25rem 1.25rem; margin: 0; }
.quote p { font-size: 1.05rem; color: var(--text); font-style: italic; }
.quote footer { color: var(--faint); font-size: .85rem; }

/* ---------- CTA band ---------- */
.cta-band {
  border: 1px solid var(--red-line); border-radius: var(--radius);
  background: linear-gradient(120deg, rgba(53, 125, 183, .16), rgba(53, 125, 183, .05));
  padding: 2.5rem; display: flex; flex-wrap: wrap; gap: 1.5rem; align-items: center; justify-content: space-between;
}
.cta-band h2 { margin: 0 0 .4rem; }
.cta-band p { color: var(--muted); margin: 0; max-width: 560px; }
.cta-actions { display: flex; gap: .75rem; flex-wrap: wrap; }

/* ---------- forms ---------- */
.form { display: grid; gap: 1rem; }
.form label { font-size: .85rem; font-weight: 600; display: block; margin-bottom: .35rem; }
.form input, .form select, .form textarea {
  width: 100%; background: var(--surface-2); border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
  color: var(--text); padding: .65rem .8rem; font: inherit; font-size: .95rem;
}
.form input:focus, .form select:focus, .form textarea:focus { border-color: var(--red); outline: none; }
.form textarea { min-height: 120px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-note { font-size: .8rem; color: var(--faint); }
.form-panel { background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--radius); padding: 1.75rem; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--border); background: var(--bg-alt); margin-top: 5rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2.5rem; padding: 3rem 0 2rem; }
.footer-brand p { color: var(--muted); font-size: .9rem; max-width: 320px; }
.footer-col h4 { font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: var(--faint); margin: 0 0 .9rem; font-family: var(--font-sans); }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.footer-col a { color: var(--muted); font-size: .9rem; }
.footer-col a:hover { color: var(--text); }
.footer-bottom { border-top: 1px solid var(--border); padding: 1.25rem 0 1.75rem; display: flex; flex-wrap: wrap; gap: .75rem; justify-content: space-between; align-items: center; }
.footer-bottom p { color: var(--faint); font-size: .82rem; margin: 0; }
.footer-legal { display: flex; gap: 1.25rem; }

/* ---------- faq ---------- */
.faq { max-width: 780px; margin: 0 auto; display: grid; gap: .75rem; }
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 1rem 1.25rem; }
.faq summary { cursor: pointer; font-family: var(--font-display); font-weight: 600; font-size: 1rem; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::after { content: "+"; color: var(--red-bright); font-weight: 700; }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); font-size: .92rem; margin: .75rem 0 0; }

/* ---------- responsive ---------- */
@media (max-width: 1024px) {
  /* Keep the 3:1 lockup ratio and shrink it just enough that the nav row
     never squeezes past the logo at narrower desktop widths. */
  .header-inner { height: 92px; }
  .brand img { width: 240px; height: 80px; }
  .nav-links { gap: 1.75rem; }
  .hero-grid { grid-template-columns: 1fr; }
  .price-grid { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; }
  .tier-grid { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .header-inner { height: 84px; }
  .brand img { width: 220px; height: 73px; }
  .section { padding: 3rem 0; }
  .hero { padding: 3.5rem 0 3rem; }
  h1 { font-size: 2.1rem; }
  h2 { font-size: 1.55rem; }
  .site-nav { display: none; }
  .nav-links { display: none; }
  .nav-links.open {
    display: flex; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--bg-alt); border-bottom: 1px solid var(--border-strong); padding: 1rem 1.5rem 1.25rem; gap: .9rem;
  }
  .nav-cta { display: none; }
  .nav-cta.open { display: flex; flex-direction: column; gap: .6rem; position: absolute; top: calc(100% - 0px); }
  .nav-toggle { display: inline-flex; }
  .form-row { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .cta-band { padding: 1.75rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.75rem; }
}
