/*
  CubicPrism Risk Analytics stylesheet

  Technology notes:
  - CSS controls the page's colors, spacing, layout, typography, responsive behavior, and chart illustration.
  - This site uses plain HTML + CSS.  No JavaScript framework or build system is required.
  - CSS custom properties, also called variables, are defined in :root and reused throughout the file.
  - Browser DevTools is the best way to experiment with these values safely before editing the file.

  Maintenance caution:
  - Many class names in this file match class attributes in index.html.
  - If you rename a class in HTML, rename the matching CSS selector too.
  - Keep the requested dash style in visible text: space + en dash + space, written as " – ".
*/

/* Global design tokens: change these to alter the whole site's color/spacing system. */
:root {
  --bg: #f5f7fb;
  --surface: #ffffff;
  --ink: #0b1220;
  --heading-blue: rgb(0, 32, 96);
  --ink-2: #162033;
  --muted: #526174;
  --soft: #dbe4ef;
  --line: #e7edf5;
  --blue: #2563eb;
  --blue-dark: #1d4ed8;
  --cyan: #0891b2;
  --violet: #6d5dfc;
  --amber: #d97706;
  --green: #16875f;
  --shadow: 0 26px 80px rgba(15, 23, 42, 0.14);
  --soft-shadow: 0 18px 44px rgba(15, 23, 42, 0.08);
  --radius: 30px;
}

/* Border-box makes width calculations more predictable when padding/borders are added. */
* {
  box-sizing: border-box;
}

/* Enables smooth scrolling when a nav link jumps to #problem, #riskprism, etc. */
html {
  scroll-behavior: smooth;
}

/* Base page styling: background, default font, text color, and line height. */
body {
  margin: 0;
  background:
    radial-gradient(circle at 14% 2%, rgba(37, 99, 235, 0.12), transparent 28rem),
    radial-gradient(circle at 88% 18%, rgba(8, 145, 178, 0.10), transparent 28rem),
    var(--bg);
  color: var(--ink);
  font-family: Aptos, Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

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

/* Sticky header: remains at the top as the user scrolls. */
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px clamp(20px, 5vw, 76px);
  background: rgba(255, 255, 255, 0.82);
  border-bottom: 1px solid rgba(219, 228, 239, 0.9);
  backdrop-filter: blur(20px);
}

/* Generic brand container. The masthead-specific size rules appear later. */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
}

.brand-icon {
  display: block;
  width: 52px;
  height: 52px;
  object-fit: contain;
  filter: drop-shadow(0 12px 22px rgba(15, 23, 42, 0.16));
}

.brand strong {
  display: block;
  color: var(--ink);
  font-size: 1.12rem;
  letter-spacing: -0.035em;
}

.brand em {
  display: block;
  margin-top: -2px;
  color: var(--blue-dark);
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 900;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

/* Desktop navigation links. Hidden on narrower screens by media queries below. */
.nav {
  display: flex;
  gap: 26px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 800;
}

.nav a {
  position: relative;
}

.nav a::after {
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 0;
  height: 2px;
  border-radius: 99px;
  background: var(--blue);
  content: "";
  transition: width 180ms ease;
}

.nav a:hover {
  color: var(--blue-dark);
}

.nav a:hover::after {
  width: 100%;
}

.header-cta,
/* Shared button styling for CTA links and form-style buttons. */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 900;
  transition: 180ms ease;
}

.header-cta {
  padding: 10px 18px;
  background: var(--ink);
  color: #fff;
  font-size: 0.9rem;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.18);
}

.header-cta:hover,
.button.primary:hover {
  background: var(--blue-dark);
  transform: translateY(-1px);
}

/* Hero layout: two-column grid with copy on the left and dashboard graphic on the right. */
.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(420px, 0.98fr);
  gap: 58px;
  align-items: start;
  min-height: 800px;
  padding: 88px clamp(20px, 5vw, 76px) 82px;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(255,255,255,0.92), rgba(248,251,255,0.75));
  border-bottom: 1px solid var(--line);
}

/* Decorative grid overlay in the hero background. */
.hero-bg-grid {
  position: absolute;
  inset: 0;
  opacity: 0.35;
  background-image:
    linear-gradient(rgba(37,99,235,0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37,99,235,0.12) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: radial-gradient(circle at 38% 38%, black, transparent 72%);
}

.hero-copy,
/* Dashboard-style comparison graphic card in the hero section. */
.dashboard-card {
  position: relative;
  z-index: 1;
}

/* Small pill-shaped labels used above major headings. */
.eyebrow,
.section-kicker {
  display: inline-flex;
  margin: 0 0 18px;
  padding: 9px 14px;
  border: 1px solid rgba(37, 99, 235, 0.18);
  border-radius: 999px;
  background: rgba(239, 246, 255, 0.95);
  color: var(--blue-dark);
  font-size: 0.84rem;
  font-weight: 950;
  letter-spacing: 0.01em;
}

/* Remove default top margins so spacing is controlled consistently by this stylesheet. */
h1,
h2,
h3,
p {
  margin-top: 0;
}

/* Main hero headline. Adjust font-size and line-height here if the hero feels too loud or too small. */
h1 {
  max-width: 850px;
  margin-bottom: 26px;
  color: var(--heading-blue);
  font-family: inherit;
  font-size: clamp(2.85rem, 5vw, 5.25rem);
  font-weight: 850;
  line-height: 1.04;
  letter-spacing: -0.045em;
}

/* Major section headings. Color is harmonized to RGB(0,32,96) via --heading-blue. */
h2 {
  margin-bottom: 22px;
  color: var(--heading-blue);
  font-size: clamp(2.35rem, 4vw, 4.35rem);
  line-height: 1;
  letter-spacing: -0.058em;
}

h3 {
  margin-bottom: 12px;
  color: var(--heading-blue);
  font-size: 1.16rem;
  letter-spacing: -0.02em;
}

/* Primary hero paragraph below the headline. */
.lead {
  max-width: 720px;
  color: var(--muted);
  font-family: inherit;
  font-size: clamp(1.14rem, 1.45vw, 1.36rem);
  font-weight: 400;
  line-height: 1.68;
}

/* Secondary hero paragraph; kept in the same typographic family as the lead. */
.hero-sublead {
  max-width: 760px;
  margin: -6px 0 0;
  color: var(--muted);
  font-family: inherit;
  font-size: clamp(1.08rem, 1.32vw, 1.22rem);
  font-weight: 400;
  line-height: 1.72;
}

/* Container for hero buttons. Currently only one primary CTA is used. */
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.button {
  min-height: 50px;
  padding: 13px 22px;
  border: 0;
  cursor: pointer;
}

.button.primary {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 18px 38px rgba(37, 99, 235, 0.25);
}

.button.ghost {
  border: 1px solid #cbd5e1;
  background: rgba(255,255,255,0.72);
  color: var(--ink);
}

.button.ghost:hover {
  border-color: #93c5fd;
  color: var(--blue-dark);
  background: #fff;
  transform: translateY(-1px);
}

.dashboard-card {
  border: 1px solid rgba(203, 213, 225, 0.86);
  border-radius: 36px;
  background: rgba(255,255,255,0.88);
  box-shadow: var(--shadow);
  overflow: hidden;
  backdrop-filter: blur(16px);
}

/* Dark top band of the dashboard card showing the mainstream score and ambiguity note. */
.dashboard-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  padding: 30px;
  color: #fff;
  background:
    radial-gradient(circle at 88% 0%, rgba(96, 165, 250, 0.36), transparent 22rem),
    linear-gradient(135deg, #07111f, #172033 72%, #1d4ed8);
}

.small-label {
  display: block;
  color: #cbd5e1;
  font-size: 0.84rem;
  font-weight: 800;
}

.score {
  display: block;
  margin-top: 3px;
  font-size: 4.2rem;
  line-height: 1;
  letter-spacing: -0.07em;
}

.score-note {
  min-width: 148px;
  padding: 12px 14px;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 20px;
  background: rgba(255,255,255,0.08);
}

.score-note span,
.score-note strong {
  display: block;
}

.score-note span {
  display: block;
  color: #ffffff;
  font-size: 0.96rem;
  font-weight: 800;
  line-height: 1.25;
}

.score-note strong {
  display: block;
  margin-top: 4px;
  color: #ffffff;
  font-size: 0.96rem;
  font-weight: 800;
  line-height: 1.25;
}

.dashboard-body {
  padding: 24px;
}

.dashboard-heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 18px;
}

.dashboard-heading h2 {
  margin-bottom: 4px;
  font-size: 1.25rem;
  letter-spacing: -0.025em;
}

.dashboard-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.pill {
  flex: 0 0 auto;
  padding: 8px 10px;
  border-radius: 999px;
  background: #ecfeff;
  color: #0e7490;
  font-size: 0.76rem;
  font-weight: 950;
}

/* Hand-coded bar chart. Bar heights come from inline --h values in index.html. */
.chart {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  align-items: end;
  gap: 13px;
  height: 215px;
  margin-top: 16px;
  padding: 8px 4px 0;
  border-bottom: 1px solid #ccd7e5;
}

/* Shared bar styling. Color is assigned by level-specific classes below. */
.bar {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  height: var(--h);
  min-height: 36px;
  padding-top: 10px;
  border-radius: 16px 16px 0 0;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.28);
}

/* Maturity level colors: lower levels use orange/amber; higher levels use green. */
.bar.level0 {
  background: linear-gradient(180deg, #f97316, #c2410c);
}

.bar.level1 {
  background: linear-gradient(180deg, #fb923c, #d97706);
}

.bar.level2 {
  background: linear-gradient(180deg, #facc15, #ca8a04);
}

.bar.level3 {
  background: linear-gradient(180deg, #60a5fa, #2563eb);
}

.bar.level4 {
  background: linear-gradient(180deg, #4ade80, #16a34a);
}

.bar.level5 {
  background: linear-gradient(180deg, #22c55e, #15803d);
}

.bar strong {
  color: #fff;
  font-size: 0.92rem;
  line-height: 1;
  font-weight: 950;
}

.bar span {
  position: absolute;
  left: 50%;
  bottom: -31px;
  transform: translateX(-50%);
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 950;
}

/* Average calculation callout below the chart. */
.avg-calc {
  margin: 28px 0 18px;
  padding: 15px 16px;
  border: 1px solid #dbeafe;
  border-radius: 18px;
  background: linear-gradient(135deg, #f8fbff, #ffffff);
}

.avg-calc span,
.avg-calc strong {
  display: block;
}

.avg-calc span {
  margin-bottom: 4px;
  color: var(--blue-dark);
  font-size: 0.82rem;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.avg-calc strong {
  color: var(--ink-2);
  font-size: 0.96rem;
  line-height: 1.5;
}

.insight-row {
  display: grid;
  grid-template-columns: 0.7fr 0.7fr 1.2fr;
  gap: 10px;
  margin-top: 14px;
}

.insight-row article {
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #f8fafc;
}

.insight-row span {
  display: block;
  color: var(--ink);
  font-weight: 950;
}

.insight-row p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.35;
}

/* Common section padding. Most major content blocks use this class. */
.section {
  padding: 96px clamp(20px, 5vw, 76px);
}

.problem-intro,
.governance-section,
.pilot-section,
.contact-section {
  max-width: 1500px;
  margin: 0 auto;
}

.intro-grid,
.governance-grid,
.pilot-section,
.contact-section,
.model-section,
/* Dark audience/fit section. Headings are overridden to white for contrast. */
.audience-section {
  display: grid;
  grid-template-columns: 0.86fr 1.14fr;
  gap: 60px;
  align-items: start;
}

.intro-copy {
  color: var(--muted);
  font-size: 1.08rem;
}

/* Four-column grid for the expandable problem/risk/RPM treatment cards. */
.problem-card-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  max-width: 1500px;
  margin: 0 auto;
  padding-top: 0;
}

/* Native <details> element styled as an expandable card. */
.problem-card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.9);
  box-shadow: var(--soft-shadow);
  overflow: visible;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.problem-card:hover {
  transform: translateY(-3px);
  border-color: rgba(37, 99, 235, 0.25);
  box-shadow: 0 24px 54px rgba(15, 23, 42, 0.12);
}

/* The clickable/always-visible part of each expandable card. */
.problem-card summary {
  display: flex;
  cursor: pointer;
  flex-direction: column;
  padding: 28px;
  list-style: none;
}

.problem-card summary::-webkit-details-marker {
  display: none;
}

.card-symbol {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-bottom: 18px;
  border-radius: 18px;
  background: linear-gradient(135deg, #2563eb, #0891b2);
  color: #fff;
  font-size: 1.25rem;
  font-weight: 950;
}

.card-title {
  color: var(--ink);
  font-size: 1.16rem;
  font-weight: 950;
  letter-spacing: -0.02em;
}

.card-summary {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  line-height: 1.55;
}

/* Orange risk callout inside each problem card. */
.risk-line {
  display: block;
  margin-top: 16px;
  padding: 14px 15px;
  border-left: 4px solid #f97316;
  border-radius: 14px;
  background: #fff7ed;
  color: #7c2d12;
  font-size: 0.94rem;
  line-height: 1.5;
}

.risk-line strong {
  color: #9a3412;
}

.card-action {
  display: inline-flex;
  justify-content: center;
  margin-top: 22px;
  padding: 11px 13px;
  border: 1px solid #cbd5e1;
  border-radius: 15px;
  background: #f8fafc;
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 950;
  transition: 180ms ease;
}

.problem-card[open] .card-action,
.problem-card summary:hover .card-action {
  border-color: #93c5fd;
  background: #eff6ff;
  color: var(--blue-dark);
}

.problem-card[open] .card-action {
  font-size: 0;
}

.problem-card[open] .card-action::after {
  content: "RiskPrism Benefit";
  font-size: 0.88rem;
}

/* Hidden/expanded content area inside each problem card. */
.card-detail {
  display: block;
  margin: 0 28px 28px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  background: #ffffff;
}

.card-detail p {
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 0.96rem;
}

.card-detail p:last-child {
  margin-bottom: 0;
}

/* RPM model section with a light gradient background. */
.model-section {
  background:
    radial-gradient(circle at 15% 10%, rgba(37, 99, 235, 0.14), transparent 22rem),
    linear-gradient(135deg, #ffffff, #f8fbff);
  border-block: 1px solid var(--line);
}

.model-copy p:not(.eyebrow),
.audience-copy p,
.governance-grid p,
.pilot-section p,
.contact-section p {
  color: var(--muted);
  font-size: 1.08rem;
}

/* Visual comparison of mainstream score versus RPM data layers. */
.model-visual {
  display: grid;
  grid-template-columns: 0.95fr 40px 1.05fr;
  align-items: center;
  gap: 14px;
}

/* Cards used in the model visual. */
.lens-card,
.lens-stack article {
  border: 1px solid var(--line);
  border-radius: 26px;
  background: #fff;
  box-shadow: var(--soft-shadow);
}

.lens-card {
  padding: 30px;
}

.lens-card span {
  display: block;
  margin-bottom: 8px;
  color: var(--blue-dark);
  font-size: 0.82rem;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.lens-card strong {
  display: block;
  color: var(--ink);
  font-size: 1.8rem;
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.lens-card p {
  margin: 14px 0 0;
  color: var(--muted);
}

.connector {
  height: 2px;
  background: linear-gradient(90deg, var(--blue), transparent);
}

.lens-stack {
  display: grid;
  gap: 12px;
}

.lens-stack article {
  padding: 18px 20px;
}

.lens-stack strong {
  display: block;
  color: var(--ink);
}

.lens-stack span {
  display: block;
  color: var(--muted);
  font-size: 0.92rem;
}

/* Governance section layout: explanatory text plus comparison table. */
.governance-grid {
  align-items: start;
}

/* Wrapper gives the table rounded corners, shadow, and horizontal scrolling if needed. */
.comparison-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--soft-shadow);
}

/* Base table styling. */
table {
  width: 100%;
  min-width: 700px;
  border-collapse: collapse;
}

th,
td {
  padding: 16px 18px;
  border-bottom: 1px solid #edf2f7;
  text-align: left;
}

th {
  background: #f8fafc;
  color: var(--ink);
  font-size: 0.9rem;
}

td:nth-child(2),
td:nth-child(3),
th:nth-child(2),
th:nth-child(3) {
  text-align: center;
}

tbody tr:last-child td {
  border-bottom: 0;
}

tbody td:nth-child(2) {
  color: #64748b;
  font-weight: 750;
}

tbody td:nth-child(3) {
  color: var(--blue-dark);
  font-weight: 950;
}

.audience-section {
  background:
    radial-gradient(circle at 80% 8%, rgba(96, 165, 250, 0.20), transparent 24rem),
    linear-gradient(135deg, #07111f, #172033 72%, #1d4ed8);
  color: #fff;
}

.audience-section .eyebrow {
  border-color: rgba(147, 197, 253, 0.28);
  background: rgba(255, 255, 255, 0.08);
  color: #dbeafe;
}

.audience-copy p {
  color: #dbe4ef;
}

.audience-cards {
  display: grid;
  gap: 18px;
}

.audience-cards article {
  padding: 26px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.07);
  box-shadow: none;
}

.audience-cards span {
  color: #93c5fd;
  font-size: 0.86rem;
  font-weight: 950;
}

.audience-cards h3 {
  margin-top: 8px;
  color: #fff;
}

.audience-cards p {
  margin: 0;
  color: #cbd5e1;
}

.pilot-section {
  align-items: center;
}

.pilot-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pilot-steps li {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--soft-shadow);
}

.pilot-steps strong {
  display: block;
  color: var(--blue-dark);
  font-size: 0.88rem;
}

.pilot-steps span {
  display: block;
  margin-top: 12px;
  font-weight: 950;
  line-height: 1.25;
}

.contact-section {
  background: #fff;
  border-top: 1px solid var(--line);
}

.email-link {
  display: inline-flex;
  margin-top: 18px;
  color: var(--blue-dark);
  font-weight: 950;
}

.email-link:hover {
  color: var(--cyan);
}

.contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
  box-shadow: var(--soft-shadow);
}

label {
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 950;
}

label.full {
  grid-column: 1 / -1;
}

input,
textarea {
  display: block;
  width: 100%;
  margin-top: 8px;
  border: 1px solid #cbd5e1;
  border-radius: 18px;
  padding: 14px 16px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  outline: none;
}

input:focus,
textarea:focus {
  border-color: #60a5fa;
  box-shadow: 0 0 0 4px #dbeafe;
}

textarea {
  min-height: 142px;
  resize: vertical;
}

.contact-form button {
  justify-self: start;
}

/* Footer with masthead logo and company-only copyright. */
.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 34px clamp(20px, 5vw, 76px);
  border-top: 1px solid var(--line);
  background: #fff;
}

.footer p {
  margin: 0;
  color: #64748b;
  font-size: 0.9rem;
}

/* Responsive breakpoint: tablet/smaller desktop layout. */
@media (max-width: 1120px) {
  .nav,
  .header-cta {
    display: none;
  }

  .hero,
  .intro-grid,
  .model-section,
  .governance-grid,
  .audience-section,
  .pilot-section,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .problem-card-grid,
  .pilot-steps {
    grid-template-columns: repeat(2, 1fr);
  }

  .model-visual {
    grid-template-columns: 1fr;
  }

  .connector {
    width: 2px;
    height: 34px;
    margin-left: 32px;
    background: linear-gradient(180deg, var(--blue), transparent);
  }
}

/* Responsive breakpoint: phone layout. */
@media (max-width: 720px) {
  .site-header {
    padding: 14px 18px;
  }

  .brand-icon {
    width: 44px;
    height: 44px;
  }

  .brand strong {
    font-size: 1rem;
  }

  .brand em {
    font-size: 0.64rem;
  }

  h1 {
    font-size: 3.2rem;
  }

  .dashboard-top,
  .dashboard-heading {
    flex-direction: column;
  }

  .problem-card-grid,
  .pilot-steps,
  .contact-form,
  .insight-row {
    grid-template-columns: 1fr;
  }

  .section,
  .hero {
    padding-inline: 18px;
  }

  .contact-form button {
    width: 100%;
  }

  .footer {
    align-items: flex-start;
    flex-direction: column;
  }
}


.problem-card[open] {
  border-color: rgba(37, 99, 235, 0.30);
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.14);
}

.problem-card[open] summary {
  padding-bottom: 18px;
}

.campaign-card {
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 90% 0%, rgba(37, 99, 235, 0.12), transparent 15rem),
    #ffffff;
  box-shadow: var(--soft-shadow);
}

.campaign-label {
  display: inline-flex;
  margin-bottom: 14px;
  padding: 8px 11px;
  border-radius: 999px;
  background: #eff6ff;
  color: var(--blue-dark);
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.campaign-card h3 {
  font-size: 1.55rem;
  line-height: 1.1;
}

.campaign-card p {
  color: var(--muted);
}

.campaign-card .button {
  margin-top: 12px;
  margin-right: 10px;
}

/* Contact page */

.contact-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.72fr);
  gap: 56px;
  align-items: center;
  min-height: 560px;
  padding: 88px clamp(20px, 5vw, 76px) 76px;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(255,255,255,0.94), rgba(248,251,255,0.82));
  border-bottom: 1px solid var(--line);
}

.contact-hero-copy,
.contact-summary-card {
  position: relative;
  z-index: 1;
}

.contact-hero h1 {
  max-width: 760px;
}

.contact-summary-card {
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 92% 0%, rgba(37, 99, 235, 0.12), transparent 14rem),
    #ffffff;
  box-shadow: var(--shadow);
}

.contact-summary-card h2 {
  margin-bottom: 18px;
  font-size: 1.75rem;
  letter-spacing: -0.04em;
}

.contact-summary-card ul {
  margin: 0;
  padding-left: 1.15rem;
  color: var(--muted);
}

.contact-summary-card li + li {
  margin-top: 10px;
}

.contact-page-section {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 56px;
  align-items: start;
  max-width: 1500px;
  margin: 0 auto;
}

.mailerlite-card {
  min-height: 320px;
}

.inquiry-grid-section {
  max-width: 1500px;
  margin: 0 auto;
  padding-top: 0;
}

.inquiry-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.inquiry-grid article {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: var(--soft-shadow);
}

.inquiry-grid strong {
  display: block;
  color: var(--ink);
  font-size: 1.08rem;
}

.inquiry-grid p {
  margin: 10px 0 0;
  color: var(--muted);
}

.direct-contact-section {
  background: #ffffff;
  border-top: 1px solid var(--line);
}

.direct-contact-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: center;
  max-width: 1500px;
  margin: 0 auto;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 88% 0%, rgba(37, 99, 235, 0.11), transparent 16rem),
    #f8fafc;
  box-shadow: var(--soft-shadow);
}

.direct-contact-card h2 {
  font-size: clamp(2rem, 3vw, 3.3rem);
}

.direct-contact-card p {
  color: var(--muted);
}

@media (max-width: 1120px) {
  .contact-hero,
  .contact-page-section,
  .direct-contact-card {
    grid-template-columns: 1fr;
  }

  .inquiry-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .direct-contact-card .button {
    justify-self: start;
  }
}

@media (max-width: 720px) {
  .contact-hero {
    min-height: auto;
    padding-inline: 18px;
  }

  .inquiry-grid {
    grid-template-columns: 1fr;
  }
}


/* Masthead logo on main page */

.brand-masthead {
  display: inline-flex;
  align-items: center;
  gap: 0;
  max-width: min(341px, 26.66vw);
}

.brand-masthead img {
  display: block;
  width: min(341px, 26.66vw);
  height: auto;
}

.footer-masthead {
  max-width: min(216px, 19.16vw);
}

.footer-masthead img {
  width: min(216px, 19.16vw);
  height: auto;
}

@media (max-width: 1120px) {
  .brand-masthead {
    max-width: min(259px, 29.16vw);
  }

  .brand-masthead img {
    width: min(259px, 29.16vw);
  }

  .footer-masthead {
    max-width: min(175px, 23.34vw);
  }

  .footer-masthead img {
    width: min(175px, 23.34vw);
  }
}

@media (max-width: 720px) {
  .brand-masthead {
    max-width: min(141px, 31.66vw);
  }

  .brand-masthead img {
    width: min(141px, 31.66vw);
  }

  .footer-masthead {
    max-width: min(125px, 30vw);
  }

  .footer-masthead img {
    width: min(125px, 30vw);
  }
}


.audience-section h2,
.audience-section h3 {
  color: #ffffff;
}

.dashboard-heading h2,
.contact-summary-card h2 {
  color: var(--heading-blue);
}


/*
  Live-site masthead logo sizing fix:
  These high-specificity selectors stop the masthead image from rendering at its natural size.
*/
 /* Live-site masthead logo sizing fix */

.site-header .brand.brand-masthead {
  display: inline-flex;
  align-items: center;
  gap: 0;
  flex: 0 0 auto;
  max-width: 341px;
  width: 341px;
}

.site-header .brand.brand-masthead img {
  display: block;
  width: 341px !important;
  max-width: 341px;
  height: auto !important;
  max-height: none;
  object-fit: contain;
}

.footer .brand.brand-masthead.footer-masthead {
  display: inline-flex;
  align-items: center;
  gap: 0;
  flex: 0 0 auto;
  max-width: 216px;
  width: 216px;
}

.footer .brand.brand-masthead.footer-masthead img {
  display: block;
  width: 216px !important;
  max-width: 216px;
  height: auto !important;
  object-fit: contain;
}

@media (max-width: 1120px) {
  .site-header .brand.brand-masthead {
    max-width: 259px;
    width: 259px;
  }

  .site-header .brand.brand-masthead img {
    width: 259px !important;
    max-width: 259px;
  }

  .footer .brand.brand-masthead.footer-masthead {
    max-width: 175px;
    width: 175px;
  }

  .footer .brand.brand-masthead.footer-masthead img {
    width: 175px !important;
    max-width: 175px;
  }
}

@media (max-width: 720px) {
  .site-header .brand.brand-masthead {
    max-width: 141px;
    width: 141px;
  }

  .site-header .brand.brand-masthead img {
    width: 141px !important;
    max-width: 141px;
  }

  .footer .brand.brand-masthead.footer-masthead {
    max-width: 125px;
    width: 125px;
  }

  .footer .brand.brand-masthead.footer-masthead img {
    width: 125px !important;
    max-width: 125px;
  }
}

/* Single CTA and bottom call-to-action */

.hero-actions.single-action {
  margin-top: 28px;
}

/* Bottom CTA section; duplicates the hero contact action after the full page argument. */
.final-cta-section {
  background:
    radial-gradient(circle at 88% 0%, rgba(37, 99, 235, 0.12), transparent 18rem),
    #ffffff;
  border-top: 1px solid var(--line);
}

.final-cta-card {
  max-width: 1100px;
  margin: 0 auto;
  padding: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 8% 0%, rgba(37, 99, 235, 0.10), transparent 18rem),
    linear-gradient(135deg, #ffffff, #f8fbff);
  box-shadow: var(--soft-shadow);
  text-align: center;
}

.final-cta-card p {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
  color: var(--muted);
  font-size: 1.08rem;
}

.final-cta-card .button {
  margin-top: 10px;
}

@media (max-width: 720px) {
  .final-cta-card {
    padding: 30px 22px;
    text-align: center;
  }

  .final-cta-card .button {
    width: 100%;
  }
}

/* Average-score weakness annotations */

.weakness-note {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.09);
}

.average-weaknesses {
  margin-top: 12px;
  padding: 12px 14px;
  border: 1px solid #fed7aa;
  border-radius: 18px;
  background: #fff7ed;
}

.average-weaknesses span {
  display: block;
  margin-bottom: 7px;
  color: #9a3412;
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.average-weaknesses ul {
  margin: 0;
  padding-left: 1.1rem;
  color: #7c2d12;
  font-size: 0.9rem;
  line-height: 1.45;
}

.average-weaknesses li + li {
  margin-top: 4px;
}


/* Final CTA centering correction */
.final-cta-card {
  text-align: center;
}
