/* ============================================================
   site.css
   Version: v1.0.0002
   Inflo Systems — shared design system for the public marketing site.
   CHANGELOG:
   v1.0.0002 — Center .auth-card horizontally (was hugging the left edge
               inside the wider .wrap on the audit account-creation step).
   v1.0.0001 — Added .account-menu* (topbar avatar + dropdown) styles.
   v1.0.0000 — Initial build (WordPress -> hand-built cutover)
   ============================================================ */

:root {
  --bg: #0a0e17;
  --bg-alt: #0e1420;
  --panel: #121a28;
  --panel-2: #161f30;
  --border: #232e42;
  --text: #eef1f7;
  --muted: #94a0b8;
  --muted-2: #6b7690;
  --red: #e0293f;
  --red-bright: #ff3b52;
  --red-dim: #3a1420;
  --gold: #e8ac4a;
  --green: #34c77b;
  --amber: #e8ac4a;
  --font-display: 'Space Grotesk', 'Inter', -apple-system, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --radius: 14px;
  --max: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.15; margin: 0 0 16px; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.2rem, 4.5vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 16px; color: var(--muted); }
.eyebrow { text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.75rem; font-weight: 700; color: var(--red-bright); margin-bottom: 12px; display: inline-block; }
.lede { font-size: 1.15rem; color: var(--muted); max-width: 640px; }

section { padding: 88px 0; position: relative; }
section.tight { padding: 56px 0; }
.section-head { max-width: 680px; margin: 0 auto 48px; text-align: center; }
.section-head.left { margin: 0 0 48px; text-align: left; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 26px; border-radius: 999px; font-weight: 600; font-size: 0.95rem; text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, background .15s ease; font-family: var(--font-body); }
.btn:active { transform: translateY(1px); }
.btn-primary { background: linear-gradient(135deg, var(--red-bright), var(--red)); color: #fff; box-shadow: 0 8px 24px -8px rgba(224,41,63,0.6); }
.btn-primary:hover { box-shadow: 0 10px 30px -6px rgba(224,41,63,0.75); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--muted); }
.btn-block { width: 100%; }
.btn-lg { padding: 17px 34px; font-size: 1.05rem; }

/* Topbar */
.topbar { position: sticky; top: 0; z-index: 200; background: rgba(10,14,23,0.85); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.wordmark { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.wordmark .mark { width: 34px; height: 34px; border-radius: 9px; background: linear-gradient(135deg, var(--red-bright), #a3172a); display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 700; color: #fff; font-size: 1.05rem; }
.wordmark .name { font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; color: var(--text); letter-spacing: -0.01em; }
.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a { text-decoration: none; color: var(--muted); font-size: 0.92rem; font-weight: 500; transition: color .15s; }
.nav-links a:hover { color: var(--text); }
.nav-cta { display: flex; align-items: center; gap: 18px; }
.nav-toggle { display: none; }

/* Hero */
.hero { padding: 72px 0 40px; overflow: hidden; position: relative; }
.hero::before {
  content: ''; position: absolute; top: -200px; right: -200px; width: 640px; height: 640px;
  background: radial-gradient(circle, rgba(224,41,63,0.22), transparent 65%); pointer-events: none;
}
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center; }
.badge-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0 30px; }
.badge { display: inline-flex; align-items: center; gap: 8px; background: var(--panel); border: 1px solid var(--border); padding: 8px 14px; border-radius: 999px; font-size: 0.82rem; color: var(--muted); font-weight: 500; }
.badge strong { color: var(--text); }
.badge .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 8px; }
.hero-note { margin-top: 14px; font-size: 0.85rem; color: var(--muted-2); }

.hero-visual { position: relative; }
.hero-visual .frame { border-radius: 20px; border: 1px solid var(--border); background: var(--panel); padding: 8px; box-shadow: 0 30px 60px -20px rgba(0,0,0,0.6); }
.hero-visual .frame img { border-radius: 14px; }
.stat-pill { position: absolute; bottom: -22px; left: -22px; background: var(--red); color: #fff; border-radius: 16px; padding: 18px 20px; text-align: center; box-shadow: 0 14px 30px -10px rgba(224,41,63,0.7); border: 4px solid var(--bg); }
.stat-pill .n { font-family: var(--font-display); font-size: 1.7rem; font-weight: 700; line-height: 1; }
.stat-pill .l { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; margin-top: 4px; opacity: 0.9; }

/* Trust bar */
.trust-bar { background: var(--panel); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding: 40px 0; }
.trust-item { text-align: center; }
.trust-item .n { font-family: var(--font-display); font-size: 2.1rem; font-weight: 700; color: var(--red-bright); }
.trust-item .l { font-size: 0.85rem; color: var(--muted); margin-top: 4px; }

/* Cards */
.card { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.grid-5 { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.icon-circle { width: 46px; height: 46px; border-radius: 12px; background: var(--red-dim); color: var(--red-bright); display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.icon-circle.gold { background: rgba(232,172,74,0.15); color: var(--gold); }
.icon-circle.green { background: rgba(52,199,123,0.14); color: var(--green); }

/* Video / audit block */
.video-block { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center; }
.video-frame { position: relative; border-radius: 18px; overflow: hidden; border: 1px solid var(--border); background: #000; aspect-ratio: 16/9; box-shadow: 0 24px 50px -20px rgba(0,0,0,0.6); }
.video-frame iframe { width: 100%; height: 100%; border: 0; }

.steps { counter-reset: step; }
.step { display: flex; gap: 18px; padding: 20px 0; border-bottom: 1px solid var(--border); }
.step:last-child { border-bottom: none; }
.step-num { flex: none; width: 38px; height: 38px; border-radius: 50%; background: var(--red); color: #fff; display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 700; }
.step.is-cta .step-num { background: var(--gold); color: #1a1200; }
.step h4 { margin: 4px 0 6px; font-size: 1.05rem; }
.step p { margin: 0; font-size: 0.94rem; }

/* Services */
.service-card { display: flex; flex-direction: column; height: 100%; }
.service-card h3 { margin-bottom: 10px; }
.service-card p { flex: 1; }
.tag-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.tag { font-size: 0.75rem; padding: 5px 10px; border-radius: 999px; background: var(--panel-2); color: var(--muted); border: 1px solid var(--border); }

/* About / authority */
.about-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 56px; align-items: center; }
.about-photo { border-radius: 20px; overflow: hidden; border: 1px solid var(--border); position: relative; }
.about-photo::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 60%, rgba(10,14,23,0.85)); }
.cissp-badge { position: absolute; bottom: 18px; left: 18px; z-index: 2; background: var(--bg); border: 1px solid var(--gold); color: var(--gold); font-family: var(--font-display); font-weight: 700; font-size: 0.85rem; padding: 8px 14px; border-radius: 10px; }
.about-photo-wrap { position: relative; }
.credential-list { display: grid; gap: 14px; margin: 24px 0; }
.credential-list li { list-style: none; display: flex; gap: 12px; align-items: flex-start; }
.credential-list .check { flex: none; width: 22px; height: 22px; border-radius: 50%; background: rgba(52,199,123,0.15); color: var(--green); display: flex; align-items: center; justify-content: center; font-size: 0.8rem; margin-top: 2px; }
.credential-list ul { padding: 0; margin: 0; }

/* CTA band */
.cta-band { background: linear-gradient(135deg, #7a1424, var(--red)); border-radius: 24px; padding: 56px; text-align: center; position: relative; overflow: hidden; }
.cta-band h2, .cta-band p { color: #fff; }
.cta-band p { color: rgba(255,255,255,0.85); }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 0.85rem; color: var(--muted); margin-bottom: 6px; font-weight: 500; }
.field input, .field textarea, .field select {
  width: 100%; padding: 13px 14px; border-radius: 10px; border: 1px solid var(--border);
  background: var(--panel-2); color: var(--text); font-size: 0.95rem; font-family: var(--font-body);
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--red); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.contact-meta { display: grid; gap: 18px; }
.contact-meta-item { display: flex; gap: 14px; }
.contact-meta-item .icon-circle { margin-bottom: 0; }

/* Footer */
footer.site-footer { border-top: 1px solid var(--border); padding: 56px 0 32px; background: var(--bg-alt); }
.footer-grid { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 24px; }
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-links a { text-decoration: none; color: var(--muted); font-size: 0.88rem; }
.footer-links a:hover { color: var(--text); }
.footer-bottom { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--border); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 0.8rem; color: var(--muted-2); }
.social-link { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; text-decoration: none; color: var(--muted); }
.social-link:hover { color: var(--text); border-color: var(--muted); }

/* Alerts */
.alert { padding: 14px 16px; border-radius: 10px; font-size: 0.9rem; margin-bottom: 18px; }
.alert-success { background: rgba(52,199,123,0.12); border: 1px solid rgba(52,199,123,0.4); color: #9ee8bf; }
.alert-error { background: var(--red-dim); border: 1px solid rgba(224,41,63,0.5); color: #ff9aa6; }

/* Progress (audit funnel) */
.progress-track { display: flex; gap: 6px; margin-bottom: 32px; }
.progress-track span { flex: 1; height: 5px; border-radius: 3px; background: var(--border); }
.progress-track span.done { background: var(--red); }
.q-block { padding: 26px 0; border-bottom: 1px solid var(--border); }
.q-block:last-of-type { border-bottom: none; }
.q-title { font-weight: 600; margin-bottom: 4px; font-size: 1.02rem; }
.q-cat { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--red-bright); font-weight: 700; margin-bottom: 16px; }
.opt-list { display: grid; gap: 10px; }
.opt { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--border); background: var(--panel-2); cursor: pointer; transition: border-color .15s, background .15s; }
.opt:hover { border-color: var(--muted); }
.opt input { accent-color: var(--red); }
.opt.checked { border-color: var(--red); background: var(--red-dim); }

.risk-meter { text-align: center; padding: 40px 0; }
.risk-tier { display: inline-block; font-family: var(--font-display); font-size: 2.4rem; font-weight: 700; margin: 12px 0; }
.risk-score-track { max-width: 480px; margin: 20px auto; height: 14px; border-radius: 7px; background: var(--panel-2); overflow: hidden; border: 1px solid var(--border); }
.risk-score-fill { height: 100%; background: linear-gradient(90deg, var(--green), var(--gold), var(--red)); }
.reco-list { display: grid; gap: 14px; margin-top: 32px; }
.reco-item { display: flex; gap: 14px; background: var(--panel); border: 1px solid var(--border); border-radius: 12px; padding: 18px 20px; text-align: left; }

@media (max-width: 900px) {
  .hero-grid, .about-grid, .video-block, .contact-grid { grid-template-columns: 1fr; }
  .grid-2, .grid-3, .grid-5 { grid-template-columns: 1fr 1fr; }
  .trust-grid { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
  .field-row { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .grid-2, .grid-3, .grid-5 { grid-template-columns: 1fr; }
  .cta-band { padding: 36px 22px; }
  section { padding: 60px 0; }
}

/* Auth card (Cyber Audit "create account" step — OAuth + magic link) */
.auth-card { max-width: 460px; margin: 0 auto; }
.oauth-btn {
  display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%;
  padding: 13px; margin-bottom: 12px; border-radius: 10px; border: 1px solid var(--border);
  background: var(--panel-2); color: var(--text); font-size: 0.95rem; font-weight: 600;
  text-decoration: none; cursor: pointer; font-family: var(--font-body);
  transition: border-color .15s, background .15s;
}
.oauth-btn:hover { border-color: var(--muted); background: #1b263a; }
.oauth-btn[aria-disabled="true"] { opacity: 0.4; pointer-events: none; }
.auth-divider { display: flex; align-items: center; gap: 10px; margin: 4px 0 14px; color: var(--muted-2); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; }
.auth-divider::before, .auth-divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.terms-row { display: flex; align-items: flex-start; gap: 10px; font-size: 0.83rem; color: var(--muted); margin-bottom: 20px; line-height: 1.5; }
.terms-row a { color: var(--red-bright); text-decoration: underline; }
.terms-row input { margin-top: 3px; accent-color: var(--red); }
.auth-note { text-align: center; font-size: 0.82rem; color: var(--muted-2); margin-top: 4px; }

/* Account menu (topbar avatar + dropdown, shown when signed in) */
.account-menu { position: relative; display: flex; align-items: center; height: 100%; }
.account-menu-btn {
  width: 40px; height: 40px; flex-shrink: 0; border-radius: 50%; padding: 0; cursor: pointer;
  background: var(--panel-2); border: 2px solid var(--border); color: var(--text);
  font-family: var(--font-display); font-weight: 700; font-size: 1rem;
  display: flex; align-items: center; justify-content: center; overflow: hidden; position: relative;
  transition: border-color .15s;
}
.account-menu-btn:hover { border-color: var(--red-bright); }
.account-menu-btn img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 50%; }
.account-menu-fallback { position: absolute; inset: 0; align-items: center; justify-content: center; }
.account-menu-dropdown {
  display: none; position: absolute; top: 52px; right: 0; width: 240px; z-index: 1000;
  background: var(--panel); border: 1px solid var(--border); border-radius: 12px; padding: 0.75rem;
  box-shadow: 0 18px 40px -12px rgba(0,0,0,0.6);
}
.account-menu-dropdown.open { display: block; }
.account-menu-header { padding: 0.5rem 0.5rem 0.75rem; border-bottom: 1px solid var(--border); }
.account-menu-name { color: var(--text); font-weight: 600; font-size: 0.9rem; }
.account-menu-email { color: var(--muted); font-size: 0.75rem; margin-top: 2px; }
.account-menu-link { display: inline-block; margin-top: 0.5rem; color: var(--red-bright); font-size: 0.75rem; text-decoration: none; }
.account-menu-body { padding: 0.5rem; }
.account-menu-item { display: block; color: var(--muted); font-size: 0.83rem; text-decoration: none; padding: 0.45rem 0.4rem; border-radius: 6px; }
.account-menu-item:hover { color: var(--text); background: var(--panel-2); }
