:root {
  --accent: #2f6bed;
  --accent-hover: #265bd6;
  --accent-2: #6f9bff;
  --accent-soft: rgba(47, 107, 237, .14);
  --accent-line: rgba(47, 107, 237, .32);
  --bg: #0a0b0f;
  --bg-2: #0e0f15;
  --panel: #14151c;
  --panel-2: #1a1c25;
  --panel-3: #21232e;
  --border: rgba(255, 255, 255, .08);
  --border-2: rgba(255, 255, 255, .14);
  --text: #f0f1f5;
  --text-2: #a6aab6;
  --text-3: #999eab;
  --text-4: #8f94a1;
  --teal: #16b8a6;
  --amber: #e0b341;
  --green: #22c55e;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Schibsted Grotesk", system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  line-height: 1.65;
  overflow-x: hidden;
}

a { color: var(--accent-2); text-decoration: none; }
/* Keyboard users can jump past the header, as on the other marketing pages. */
.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--accent); color: #fff; padding: 10px 16px; border-radius: 8px; font-weight: 600; }
.skip-link:focus { left: 8px; }
a:hover { text-decoration: underline; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  font-size: 15px;
  border-radius: 11px;
  padding: 10px 18px;
  white-space: nowrap;
  cursor: pointer;
  border: none;
  font-family: inherit;
  transition: all .15s ease;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 8px 24px -8px var(--accent);
}
.btn-primary:hover {
  background: var(--accent-hover);
  text-decoration: none;
}
.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-2);
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, .05);
  text-decoration: none;
}

/* Header & Nav */
header.nav {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(10, 11, 15, .85);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 24px;
  height: 70px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -.5px;
  color: var(--text);
  text-decoration: none;
}
.logo:hover { text-decoration: none; }
.logo .mark {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: url(/logo-mark.svg) center/100% 100% no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px -4px var(--accent);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-left: 20px;
}
.nav-links a {
  color: var(--text-2);
  font-size: 14.5px;
  font-weight: 500;
}
.nav-links a:hover { color: var(--text); text-decoration: none; }
.nav-links a.active { color: var(--accent-2); font-weight: 600; }
.nav-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 14px;
}

/* Layout */
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 24px; }
.article-wrap { max-width: 760px; margin: 0 auto; padding: 0 20px; }

/* Breadcrumbs */
.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  color: var(--text-3);
  margin: 36px 0 20px;
}
.breadcrumbs a { color: var(--text-3); }
.breadcrumbs a:hover { color: var(--text); }
.breadcrumbs span.sep { color: var(--border-2); }

/* Blog Hub Header */
.hub-hero {
  padding: 50px 0 40px;
  text-align: center;
  border-bottom: 1px solid var(--border);
}
.hub-hero .eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--accent-2);
  margin-bottom: 12px;
}
.hub-hero h1 {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1.1;
  margin: 0 0 16px;
}
.hub-hero p {
  font-size: 18px;
  color: var(--text-2);
  max-width: 680px;
  margin: 0 auto;
  line-height: 1.5;
}

/* Article Grid */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
  gap: 28px;
  padding: 50px 0 80px;
}
.blog-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  transition: transform .12s ease, border-color .15s ease, box-shadow .15s ease;
  position: relative;
}
.blog-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-2);
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, .5);
}
.blog-card-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12.5px;
  color: var(--text-3);
  margin-bottom: 14px;
}
.tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  background: var(--accent-soft);
  color: var(--accent-2);
  font-weight: 600;
  font-size: 11.5px;
}
.blog-card h2 {
  font-size: 21px;
  font-weight: 700;
  line-height: 1.3;
  margin: 0 0 12px;
  color: var(--text);
}
.blog-card p.excerpt {
  font-size: 14.5px;
  color: var(--text-2);
  line-height: 1.6;
  margin: 0 0 20px;
  flex: 1;
}
.blog-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border);
  padding-top: 16px;
  font-size: 13.5px;
  color: var(--text-3);
}
.author-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  color: var(--text-2);
}
.author-pill .av {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #2a3a5a;
  color: var(--accent-2);
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Single Article Typography */
article.post {
  padding-bottom: 70px;
}
.post-header {
  padding: 20px 0 36px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 40px;
}
.post-header .tag { margin-bottom: 16px; }
.post-header h1 {
  font-size: clamp(30px, 4.5vw, 44px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -.03em;
  margin: 0 0 16px;
}
.post-header p.subtitle {
  font-size: 19px;
  color: var(--text-2);
  line-height: 1.5;
  margin: 0 0 24px;
}
.post-author-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 14px;
  color: var(--text-3);
}
.author-info {
  display: flex;
  flex-direction: column;
}
.author-info b { color: var(--text); font-size: 15px; }
.author-info span { font-size: 13px; color: var(--text-3); }

/* Post Body */
.post-content {
  font-size: 17px;
  line-height: 1.75;
  color: var(--text-2);
}
.post-content h2 {
  font-size: 26px;
  font-weight: 750;
  letter-spacing: -.02em;
  color: var(--text);
  margin: 44px 0 18px;
  line-height: 1.25;
}
.post-content h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  margin: 32px 0 14px;
  line-height: 1.35;
}
.post-content p {
  margin: 0 0 22px;
}
.post-content ul, .post-content ol {
  margin: 0 0 24px 24px;
  padding: 0;
}
.post-content li {
  margin-bottom: 10px;
}
.post-content strong {
  color: var(--text);
  font-weight: 600;
}
.post-content blockquote {
  margin: 28px 0;
  padding: 18px 24px;
  border-left: 3px solid var(--accent);
  background: var(--panel);
  border-radius: 0 12px 12px 0;
  font-size: 17.5px;
  font-style: italic;
  color: var(--text);
}
.post-content blockquote p { margin: 0; }
.callout-box {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px;
  margin: 32px 0;
}
.callout-box.featured {
  background: var(--accent-soft);
  border-color: var(--accent-line);
}
.callout-box h3, .callout-box h4 {
  margin: 0 0 10px;
  font-size: 17px;
  color: var(--text);
}
.callout-box p:last-child { margin-bottom: 0; }

/* Stat / Metric Callout */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr));
  gap: 16px;
  margin: 30px 0;
}
.stat-box {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  text-align: center;
}
.stat-val {
  font-size: 36px;
  font-weight: 800;
  color: var(--accent-2);
  line-height: 1;
  margin-bottom: 6px;
}
.stat-lbl {
  font-size: 13.5px;
  color: var(--text-3);
  line-height: 1.4;
}

/* Author Bio Card */
.author-bio {
  display: flex;
  align-items: center;
  gap: 20px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  margin: 48px 0;
}
.bio-av {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1f4287, #2f6bed);
  color: #fff;
  font-size: 24px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 8px 20px -6px var(--accent);
}
.bio-text h2 {
  margin: 0 0 4px;
  font-size: 18px;
  color: var(--text);
}
.bio-text .bio-title {
  font-size: 13px;
  color: var(--accent-2);
  font-weight: 600;
  margin-bottom: 8px;
  display: block;
}
.bio-text p {
  margin: 0;
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.5;
}

/* =======================================
   OPERATOR INTAKE LEAD FORM
======================================= */
.audit-form-card {
  background: linear-gradient(180deg, #161922 0%, #12131a 100%);
  border: 1px solid var(--accent-line);
  border-radius: 20px;
  padding: 36px;
  margin: 50px 0 20px;
  box-shadow: 0 24px 60px -20px rgba(0, 0, 0, .8), 0 0 0 1px rgba(47, 107, 237, .15);
}
.form-header {
  text-align: center;
  margin-bottom: 28px;
}
.form-header .badge {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 12px;
}
.form-header h2 {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -.02em;
  margin: 0 0 10px;
  color: #fff;
}
.form-header p {
  font-size: 15px;
  color: var(--text-2);
  max-width: 580px;
  margin: 0 auto;
  line-height: 1.5;
}

.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.fld {
  margin-bottom: 16px;
}
.fld label {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 7px;
}
.fld label span.req {
  color: #fb7245;
  margin-left: 2px;
}
.fld label span.opt {
  color: var(--text-3);
  font-weight: 400;
  font-size: 12px;
  margin-left: 4px;
}
.fld input, .fld select, .fld textarea {
  width: 100%;
  font-family: inherit;
  font-size: 15px;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--border-2);
  background: rgba(255, 255, 255, .04);
  color: var(--text);
  transition: border-color .14s ease, background .14s ease;
}
.fld input:focus, .fld select:focus, .fld textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-line);
  background: rgba(255, 255, 255, .07);
}
.fld select {
  cursor: pointer;
}
.fld select option {
  background: var(--panel-2);
  color: var(--text);
}
.fld textarea {
  resize: vertical;
  line-height: 1.5;
}

.fld-hint {
  margin: 6px 0 0;
  font-size: 12.5px;
  color: var(--text-3);
  line-height: 1.45;
}

/* Checkbox Groups */
.chk-set {
  border: 0;
  margin: 0;
  padding: 0;
  min-width: 0;
}
.chk-set legend { padding: 0; }
.group-legend {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text);
  margin: 18px 0 8px;
  display: block;
}
.chk-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 8px 12px;
  margin-bottom: 16px;
}
.chk-item {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 13.5px;
  color: var(--text-2);
  background: rgba(255, 255, 255, .03);
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid var(--border);
  cursor: pointer;
  user-select: none;
}
.chk-item:hover {
  background: rgba(255, 255, 255, .06);
  color: var(--text);
}
.chk-item input[type="checkbox"], .chk-item input[type="radio"] {
  accent-color: var(--accent);
  width: 16px;
  height: 16px;
  cursor: pointer;
  margin: 0;
}

.submit-btn {
  width: 100%;
  font-size: 16px;
  font-weight: 700;
  padding: 15px 24px;
  border-radius: 12px;
  background: var(--accent);
  color: #fff;
  border: none;
  cursor: pointer;
  margin-top: 12px;
  box-shadow: 0 10px 28px -8px var(--accent);
  transition: all .15s ease;
}
.submit-btn:hover {
  background: var(--accent-hover);
  box-shadow: 0 12px 32px -8px var(--accent);
}
.submit-btn:disabled {
  opacity: .55;
  cursor: default;
}
.form-note {
  text-align: center;
  font-size: 12px;
  color: var(--text-3);
  margin-top: 12px;
}
.form-err {
  display: none;
  color: #fb7245;
  background: rgba(251, 114, 69, .1);
  border: 1px solid rgba(251, 114, 69, .25);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 13.5px;
  margin-bottom: 14px;
}
.form-success {
  display: none;
  background: rgba(34, 197, 94, .1);
  border: 1px solid rgba(34, 197, 94, .3);
  border-radius: 16px;
  padding: 36px 28px;
  text-align: center;
}
.form-success h3 {
  color: #d7f5e1;
  font-size: 22px;
  margin: 0 0 10px;
}
.form-success p {
  color: var(--text-2);
  font-size: 15px;
  max-width: 480px;
  margin: 0 auto;
}

/* Footer */
footer {
  border-top: 1px solid var(--border);
  padding: 44px 0 54px;
  color: var(--text-3);
  font-size: 14px;
}
.foot-grid {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}
footer a { color: var(--text-2); }
.foot-links { display: flex; gap: 18px; flex-wrap: wrap; }
footer a:hover { color: var(--text); }

/* The full header (logo, six links, two buttons) needs about 825px plus a scrollbar, so the
   links hide below 880px. At 760px they overflowed every iPad portrait width (768 to 834). */
@media(max-width: 880px) {
  .nav-links { display: none; }
}
@media(max-width: 760px) {
  /* Phones: a 16px gutter, a header that wraps instead of pushing the button off screen,
     and no second gutter around the article. */
  .wrap { padding: 0 16px; }
  .article-wrap { padding: 0; }
  .nav-inner { height: auto; min-height: 60px; padding: 10px 16px; flex-wrap: wrap; gap: 8px 12px; }
  .logo { font-size: 17px; gap: 8px; }
  .logo .mark { width: 28px; height: 28px; }
  .nav-right { gap: 10px; }
  .nav-right .btn { padding: 8px 12px; font-size: 13.5px; }
  .post-header p.subtitle { font-size: 17px; }
  .post-content { font-size: 16px; }
  .blog-card-foot { flex-wrap: wrap; gap: 10px; }
  .form-grid-2 { grid-template-columns: 1fr; }
  .chk-grid { grid-template-columns: 1fr; }
  .author-bio { flex-direction: column; text-align: center; }
  .audit-form-card { padding: 24px 18px; }
}
@media(max-width: 480px) {
  .nav-right .btn-ghost { display: none; }
}
