/* ============================================================
   CyberSec Compliance — shared site stylesheet
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Sora:wght@400;500;600;700;800&family=Inter:wght@400;500;600;700&display=swap');

:root {
  --navy-950: #061c3c;
  --navy-900: #0a2544;
  --navy-800: #10233f;
  --navy-700: #1c3358;
  --gold-600: #ae752c;
  --gold-700: #8c5f22;
  --gold-100: #f3e6cf;
  --cream-50: #f7f5f0;
  --cream-100: #efece2;
  --ink-900: #17212e;
  --ink-700: #3d4753;
  --ink-500: #6b7480;
  --border: #e3ded2;
  --white: #ffffff;
  --success-bg: #e2ede5;
  --success-ink: #2f6b4f;

  --font-display: 'Sora', sans-serif;
  --font-body: 'Inter', sans-serif;

  --max-width: 1180px;
  --radius: 10px;
  --shadow-card: 0 1px 2px rgba(6, 28, 60, 0.06), 0 8px 24px -12px rgba(6, 28, 60, 0.12);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink-700);
  background: var(--white);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--navy-900);
  line-height: 1.15;
  margin: 0 0 16px;
  text-wrap: balance;
}

h1 { font-size: clamp(2.1rem, 4vw, 3.2rem); font-weight: 800; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 700; }
h4 { font-size: 1rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--gold-700); }

p { margin: 0 0 16px; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-700);
  background: var(--gold-100);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}

.lede {
  font-size: 1.15rem;
  color: var(--ink-700);
  max-width: 62ch;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 14px 26px;
  border-radius: 8px;
  border: 2px solid transparent;
  cursor: pointer;
  white-space: nowrap;
}
.btn-primary { background: var(--gold-600); color: var(--white); }
.btn-primary:hover { background: var(--gold-700); }
.btn-outline { background: transparent; border-color: rgba(255,255,255,0.35); color: var(--white); }
.btn-outline:hover { border-color: var(--white); }
.btn-navy { background: var(--navy-900); color: var(--white); }
.btn-navy:hover { background: var(--navy-700); }
.btn-ghost { background: var(--cream-50); color: var(--navy-900); border-color: var(--border); }
.btn-ghost:hover { background: var(--cream-100); }
.btn-disabled { background: var(--cream-100); color: var(--ink-500); cursor: not-allowed; }

/* ---------- Header ---------- */
header.site {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--white);
  border-bottom: 1px solid var(--border);
}
header.site .wrap { max-width: 1360px; }
header.site .bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 32px;
}
.logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.logo img { height: 34px; width: auto; }
nav.primary { display: flex; align-items: center; gap: 24px; flex-wrap: nowrap; }
nav.primary a {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--navy-800);
  white-space: nowrap;
}
nav.primary a:hover { color: var(--gold-700); }
.nav-cta { display: flex; gap: 10px; align-items: center; flex-shrink: 0; }
.nav-cta .btn { padding: 10px 16px; font-size: 0.85rem; white-space: nowrap; }
.nav-dropdown { position: relative; }
.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: var(--shadow-card);
  padding: 8px;
  min-width: 180px;
  z-index: 50;
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu { display: block; }
.nav-dropdown-menu a { display: block; padding: 8px 12px; border-radius: 6px; white-space: nowrap; }
.nav-dropdown-menu a:hover { background: var(--cream-100, #f5f2ea); }
.nav-toggle {
  display: none;
  background: none;
  border: none;
  padding: 6px;
  cursor: pointer;
  flex-shrink: 0;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy-900);
  margin: 5px 0;
  border-radius: 2px;
}

@media (max-width: 1300px) {
  header.site .wrap { max-width: 100%; }
  header.site .bar { padding: 16px 24px; }
  nav.primary { gap: 18px; }
}

/* ---------- Mobile nav ---------- */
@media (max-width: 900px) {
  header.site .bar { flex-wrap: wrap; }
  .nav-toggle { display: block; order: 3; }
  nav.primary {
    display: none;
    order: 4;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
  nav.primary a { padding: 10px 0; width: 100%; }
  .nav-cta {
    display: none;
    order: 5;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .nav-cta .btn { justify-content: center; }

  /* Open state: turn the dropdown into a full-height overlay with its own
     scroll area for the links, and a sticky footer for Login/Get Started
     that's always on-screen regardless of scroll position. 71px matches
     the header bar's fixed rendered height at this breakpoint (16px/24px
     padding is constant down to small phones, so this doesn't drift). */
  header.site.nav-open nav.primary {
    display: flex;
    position: fixed;
    top: 71px;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    margin: 0;
    padding: 16px 24px 150px;
    border-top: 1px solid var(--border);
    background: var(--white);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    z-index: 45;
  }
  header.site.nav-open .nav-cta {
    display: flex;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    margin: 0;
    padding: 14px 24px calc(14px + env(safe-area-inset-bottom, 0px));
    background: var(--white);
    border-top: 1px solid var(--border);
    box-shadow: 0 -6px 16px -4px rgba(6, 28, 60, 0.18);
    z-index: 46;
  }
  .nav-dropdown-menu {
    display: block;
    position: static;
    border: none;
    box-shadow: none;
    padding: 0 0 0 16px;
    min-width: 0;
  }
  /* Lock body scroll while the overlay menu is open. */
  body:has(header.site.nav-open) { overflow: hidden; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: linear-gradient(160deg, var(--navy-950) 0%, var(--navy-800) 100%);
  color: var(--white);
  overflow: hidden;
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 82% 20%, rgba(174,117,44,0.28), transparent 55%);
  pointer-events: none;
}
.hero .wrap {
  position: relative;
  padding: 96px 32px 88px;
}
.hero-flex { display: flex; align-items: center; gap: 56px; }
.hero-content { flex: 1 1 560px; min-width: 0; }
.hero-visual { flex: 0 0 260px; display: flex; justify-content: center; }
.hero-visual img { max-width: 100%; height: auto; }
.hero h1 { color: var(--white); max-width: 34ch; }
.hero .lede { color: rgba(255,255,255,0.82); font-size: 1.2rem; }
.hero-ctas { display: flex; gap: 14px; margin-top: 32px; flex-wrap: wrap; }
.hero-trust {
  margin-top: 56px;
  display: flex;
  gap: 20px;
  flex-wrap: nowrap;
  padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,0.14);
}
.hero-trust div { font-size: 0.78rem; color: rgba(255,255,255,0.65); font-family: var(--font-display); font-weight: 600; letter-spacing: 0.01em; white-space: nowrap; }

.page-hero {
  background: linear-gradient(160deg, var(--navy-950) 0%, var(--navy-800) 100%);
  color: var(--white);
}
.page-hero .wrap { padding: 72px 32px 64px; }
.page-hero h1 { color: var(--white); max-width: 24ch; }
.page-hero .lede { color: rgba(255,255,255,0.82); }

/* ---------- Sections ---------- */
section { padding: 88px 0; }
section.tight { padding: 56px 0; }
section.alt { background: var(--cream-50); }

.section-head { max-width: 680px; margin-bottom: 48px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* ---------- Grid / Cards ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow-card);
}
.card h3 { margin-bottom: 10px; }
.card p { margin-bottom: 0; color: var(--ink-500); font-size: 0.95rem; }

.wave-divider { display: block; width: 100%; height: 60px; margin-top: -1px; }

.benefit-flank {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 40px;
  max-width: 1000px;
  margin: 0 auto;
}
.benefit-col { display: flex; flex-direction: column; gap: 20px; }
.benefit-item { display: flex; align-items: flex-start; gap: 14px; }
.benefit-item.reverse { flex-direction: row-reverse; text-align: right; }
.benefit-item h4 { margin: 0 0 4px; font-size: 0.98rem; }
.benefit-item p { margin: 0; color: var(--ink-500); font-size: 0.88rem; }
.icon-ring {
  width: 44px; height: 44px; flex-shrink: 0;
  border-radius: 50%;
  background: var(--gold-100);
  color: var(--gold-700);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.15rem;
}
.brand-motif { display: flex; align-items: center; justify-content: center; }

.icon-tile {
  width: 46px; height: 46px;
  border-radius: 10px;
  background: var(--gold-100);
  color: var(--gold-700);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 16px;
}

.icon-tile-img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  margin-bottom: 16px;
  display: block;
}

.trust-badges { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; }
.trust-badge { text-align: center; }
.trust-badge .icon-tile { margin: 0 auto 12px; }
.trust-badge .icon-tile-img { margin: 0 auto 12px; }
.trust-badge h4 { font-size: 0.95rem; margin: 0 0 4px; }
.trust-badge p { font-size: 0.82rem; color: var(--ink-500); margin: 0; }

/* ---------- Steps ---------- */
.steps { counter-reset: step; display: flex; flex-direction: column; gap: 0; }
.step {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 24px;
  padding: 30px 0;
  border-bottom: 1px solid var(--border);
}
.step:last-child { border-bottom: none; }
.step-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.4rem;
  color: var(--gold-700);
  background: var(--gold-100);
  width: 52px; height: 52px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}

.step-num-img {
  width: 52px;
  height: 52px;
  object-fit: contain;
  display: block;
}

/* ---------- Package comparison cards ---------- */
.packages { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.package-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 40px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
}
.package-card.featured { border: 2px solid var(--gold-600); position: relative; }
.package-card.featured::before {
  content: 'Most Comprehensive';
  position: absolute; top: -14px; left: 40px;
  background: var(--gold-600); color: var(--white);
  font-family: var(--font-display); font-weight: 700; font-size: 0.72rem;
  letter-spacing: 0.06em; text-transform: uppercase;
  padding: 6px 14px; border-radius: 999px;
}
.package-card .price { font-family: var(--font-display); font-size: 1.1rem; font-weight: 700; color: var(--navy-800); margin: 18px 0 22px; }
.package-card .price .tbc { color: var(--ink-500); font-weight: 600; font-size: 0.95rem; }
.package-card ul { list-style: none; margin: 0 0 28px; padding: 0; display: flex; flex-direction: column; gap: 12px; flex-grow: 1; }
.package-card li { display: flex; gap: 10px; align-items: flex-start; font-size: 0.95rem; color: var(--ink-700); }
.package-card li::before { content: '✓'; color: var(--gold-700); font-weight: 700; flex-shrink: 0; }

/* ---------- Pull quote / CTA band ---------- */
.cta-band {
  background: linear-gradient(160deg, var(--navy-950) 0%, var(--navy-800) 100%);
  color: var(--white);
  border-radius: 18px;
  padding: 56px;
  text-align: center;
}
.cta-band h2 { color: var(--white); }
.cta-band .lede { color: rgba(255,255,255,0.8); margin-left: auto; margin-right: auto; }
.cta-band .hero-ctas { justify-content: center; }

/* ---------- Blog ---------- */
.post {
  padding-bottom: 56px;
  margin-bottom: 56px;
  border-bottom: 1px solid var(--border);
}
.post:last-child { border-bottom: none; margin-bottom: 0; }
.post h2 { margin-bottom: 8px; }
.post h3 { color: var(--gold-700); margin-top: 28px; }

/* ---------- FAQ ---------- */
.faq-item { border-bottom: 1px solid var(--border); padding: 22px 0; }
.faq-item h3 { margin-bottom: 8px; font-size: 1.05rem; }
.faq-item p { color: var(--ink-500); margin-bottom: 0; }

/* ---------- Footer ---------- */
footer.site {
  background: var(--navy-950);
  color: rgba(255,255,255,0.7);
  padding: 64px 0 32px;
}
footer.site .foot-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
footer.site .logo img { height: 30px; }
footer.site p { font-size: 0.88rem; color: rgba(255,255,255,0.55); max-width: 32ch; }
footer.site h4 { color: rgba(255,255,255,0.9); font-size: 0.78rem; }
footer.site ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
footer.site a { font-size: 0.9rem; color: rgba(255,255,255,0.65); }
footer.site a:hover { color: var(--white); }
.foot-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 24px; font-size: 0.82rem; color: rgba(255,255,255,0.45);
  flex-wrap: wrap; gap: 12px;
}

/* ---------- Utility ---------- */
.badge-note {
  display: inline-block;
  background: var(--cream-100);
  color: var(--ink-500);
  font-size: 0.8rem;
  padding: 4px 10px;
  border-radius: 6px;
  margin-left: 8px;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .grid-3, .packages, footer.site .foot-grid { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .trust-badges { grid-template-columns: repeat(3, 1fr); }
  .hero .wrap, .page-hero .wrap { padding: 64px 24px 56px; }
  .hero-flex { flex-direction: column; gap: 32px; }
  .hero-visual { flex: 0 0 auto; order: -1; max-width: 220px; }
  section { padding: 56px 0; }
  .wrap { padding: 0 20px; }
  .benefit-flank { grid-template-columns: 1fr; gap: 28px; max-width: 100%; }
  .benefit-item.reverse { flex-direction: row; text-align: left; }
  .brand-motif { order: -1; }
}

@media (max-width: 560px) {
  .trust-badges { grid-template-columns: repeat(2, 1fr); }
  .hero-trust { flex-wrap: wrap; gap: 14px 20px; }
  .hero-trust div { white-space: normal; }
}

/* ---------- Footer logo (dark background - the brand PNG's navy wordmark
   is unreadable on navy, so the footer uses a text lockup instead) ---------- */
.footer-logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.3rem;
  letter-spacing: -0.01em;
  display: inline-block;
}
.footer-logo .fl-primary { color: var(--white); }
.footer-logo .fl-accent { color: var(--gold-600); }

/* ---------- Cyber news feed ---------- */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 900px) { .news-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .news-grid { grid-template-columns: 1fr; } }
.news-card {
  display: block;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow-card);
  transition: transform .15s ease, box-shadow .15s ease;
}
.news-card:hover { transform: translateY(-2px); box-shadow: 0 4px 8px rgba(6,28,60,.08), 0 16px 32px -14px rgba(6,28,60,.18); }
.news-card .news-date {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold-700);
  display: block;
  margin-bottom: 10px;
}
.news-card h3 { font-size: 1.05rem; margin-bottom: 10px; }
.news-card .news-link {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--navy-800);
}
.news-source {
  text-align: center;
  color: var(--ink-500);
  font-size: 0.85rem;
  margin-top: 28px;
}
.news-source a { color: var(--gold-700); font-weight: 600; }
#news-empty { display: none; text-align: center; color: var(--ink-500); }

/* ---------- Final CTA band ---------- */
.final-cta-band {
  background: linear-gradient(160deg, var(--navy-950) 0%, var(--navy-800) 100%);
  padding: 22px 0;
}
.final-cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.final-cta-logo img { height: 28px; width: auto; display: block; }
.final-cta-mid { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.final-cta-item { color: rgba(255,255,255,0.85); font-size: 0.92rem; white-space: nowrap; }
.final-cta-sep { color: var(--gold-600); }
@media (max-width: 700px) {
  .final-cta-inner { justify-content: center; text-align: center; }
  .final-cta-mid { justify-content: center; }
}

/* ---------- Trust strip (scrolling marquee) ---------- */
.trust-strip {
  background: var(--navy-950);
  padding: 22px 0;
  overflow: hidden;
}
.trust-track {
  display: flex;
  width: max-content;
  gap: 56px;
  animation: trust-scroll 32s linear infinite;
}
.trust-strip:hover .trust-track { animation-play-state: paused; }
.trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  color: rgba(255,255,255,0.82);
}
.trust-item .dot { color: var(--gold-600); font-weight: 800; }
@keyframes trust-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .trust-track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; }
}

