:root {
  --navy: #0a2d5b;
  --blue: #2563eb;
  --blue-strong: #174ccf;
  --blue-soft: #e6f0ff;
  --blue-faint: #f5f9ff;
  --green: #22c55e;
  --green-soft: #dcfce7;
  --yellow: #f59e0b;
  --yellow-soft: #fff7d6;
  --red: #ef4444;
  --red-soft: #fee2e2;
  --ink: #172033;
  --muted: #64748b;
  --line: #d8e1ee;
  --surface: #f4f6f8;
  --paper: #ffffff;
  --shadow-soft: 0 18px 50px rgba(10, 45, 91, 0.1);
  --shadow-card: 0 22px 60px rgba(10, 45, 91, 0.14);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-snap: cubic-bezier(0.2, 0.8, 0.2, 1);
  --motion-fast: 180ms;
  --motion-med: 520ms;
  --motion-slow: 820ms;
  --diagnostic-result-height: 376px;
  --diagnostic-panel-min-height: 604px;
  --radius: 12px;
  --radius-sm: 8px;
  --max: 1240px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 18% 0%, rgba(230, 240, 255, 0.72), transparent 32rem),
    linear-gradient(180deg, #ffffff 0%, #f8fbff 52%, #ffffff 100%);
  font-family:
    Inter, Sora, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
}

body:not(.is-motion-ready) .motion-reveal,
body:not(.is-motion-ready) [data-reveal] {
  opacity: 1;
  transform: none;
}

@keyframes riseFade {
  from {
    opacity: 0;
    transform: translate3d(0, 18px, 0) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
}

@keyframes softPop {
  0% {
    transform: scale(0.96);
  }
  58% {
    transform: scale(1.035);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes selectHalo {
  0% {
    opacity: 0;
    transform: scale(0.92);
  }
  48% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: scale(1.18);
  }
}

@keyframes lineDraw {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}

@keyframes shimmer {
  0% {
    transform: translateX(-120%);
  }
  100% {
    transform: translateX(120%);
  }
}

@keyframes calmPulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.2);
  }
  50% {
    box-shadow: 0 0 0 9px rgba(37, 99, 235, 0);
  }
}

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

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

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

svg {
  width: 1em;
  height: 1em;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

:focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.42);
  outline-offset: 3px;
}

.icon-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 40;
  transform: translateY(-150%);
  padding: 10px 14px;
  color: var(--navy);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.skip-link:focus {
  transform: translateY(0);
}

.page-frame {
  width: min(100% - 28px, 1360px);
  margin: 18px auto 26px;
  overflow: hidden;
  background: var(--paper);
  border: 1px solid rgba(216, 225, 238, 0.92);
  border-radius: 16px;
  box-shadow: 0 22px 80px rgba(10, 45, 91, 0.08);
  animation: riseFade var(--motion-slow) var(--ease-out) both;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 76px;
  padding: 0 clamp(22px, 4vw, 48px);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid transparent;
}

.site-header[data-elevated="true"] {
  border-bottom-color: rgba(216, 225, 238, 0.92);
  box-shadow: 0 12px 28px rgba(10, 45, 91, 0.06);
}

.brand,
.nav-links,
.hero-actions,
.badge-row,
.site-footer,
.footer-brand,
.calendly-header {
  display: flex;
  align-items: center;
}

.brand,
.footer-brand {
  gap: 10px;
  color: var(--ink);
  font-weight: 850;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  color: var(--blue);
  background: #fff;
  border: 5px solid var(--blue);
  border-right-color: #8eb8ff;
  border-radius: 50%;
  font-size: 1rem;
  line-height: 1;
  transition:
    transform var(--motion-fast) var(--ease-snap),
    border-color var(--motion-fast) ease;
}

.brand:hover .brand-mark,
.footer-brand:hover .brand-mark {
  transform: rotate(-8deg) scale(1.04);
  border-right-color: var(--green);
}

.brand-mark.small {
  width: 28px;
  height: 28px;
  border-width: 4px;
  font-size: 0.78rem;
}

.nav-links {
  gap: clamp(18px, 2vw, 34px);
  margin-left: auto;
  color: var(--navy);
  font-size: 0.84rem;
  font-weight: 700;
}

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

.nav-links a {
  position: relative;
  transition: color var(--motion-fast) ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -8px;
  height: 2px;
  background: var(--blue);
  border-radius: 999px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--motion-fast) var(--ease-out);
}

.nav-links a:hover::after,
.nav-links a:focus-visible::after {
  transform: scaleX(1);
}

.nav-cta,
.button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 850;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease,
    border-color 160ms ease;
  overflow: hidden;
}

.button > *,
.nav-cta > * {
  position: relative;
  z-index: 1;
}

.nav-cta,
.button.primary,
.panel-cta {
  color: #fff;
  background: var(--blue);
  box-shadow: 0 14px 28px rgba(37, 99, 235, 0.24);
}

.nav-cta:hover,
.button.primary:hover,
.panel-cta:hover {
  background: var(--blue-strong);
  transform: translateY(-2px);
}

.button.secondary {
  color: var(--navy);
  background: #fff;
  border-color: #b9c9df;
}

.button.secondary:hover {
  border-color: var(--blue);
  box-shadow: 0 12px 26px rgba(10, 45, 91, 0.08);
  transform: translateY(-2px);
}

.nav-cta:active,
.button:active,
.task-card:active {
  transform: translateY(0) scale(0.985);
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.78fr);
  gap: clamp(32px, 6vw, 86px);
  min-height: 590px;
  padding: clamp(40px, 5.6vw, 72px) clamp(24px, 5vw, 70px) 54px;
  overflow: hidden;
  background:
    radial-gradient(circle at 83% 12%, rgba(230, 240, 255, 0.9), transparent 22rem),
    linear-gradient(135deg, #ffffff 0%, #f7fbff 58%, #edf5ff 100%);
}

.hero::before {
  content: "";
  position: absolute;
  right: 8%;
  bottom: -25%;
  width: min(560px, 50vw);
  aspect-ratio: 1;
  border: 34px solid rgba(230, 240, 255, 0.82);
  border-left-color: transparent;
  border-bottom-color: transparent;
  border-radius: 50%;
  transform: rotate(-18deg);
  animation: heroArcFloat 9s ease-in-out infinite;
}

@keyframes heroArcFloat {
  0%,
  100% {
    transform: rotate(-18deg) translate3d(0, 0, 0);
  }
  50% {
    transform: rotate(-14deg) translate3d(-10px, -8px, 0);
  }
}

.hero-copy-block,
.hero-dashboard {
  position: relative;
  z-index: 1;
}

.hero-copy-block > *,
.hero-dashboard > * {
  opacity: 0;
  animation: riseFade var(--motion-slow) var(--ease-out) both;
}

.hero-copy-block > :nth-child(1) {
  animation-delay: 80ms;
}

.hero-copy-block > :nth-child(2) {
  animation-delay: 150ms;
}

.hero-copy-block > :nth-child(3) {
  animation-delay: 230ms;
}

.hero-copy-block > :nth-child(4) {
  animation-delay: 320ms;
}

.hero-copy-block > :nth-child(5) {
  animation-delay: 430ms;
}

.hero-dashboard > :nth-child(1) {
  animation-delay: 260ms;
}

.hero-dashboard > :nth-child(2) {
  animation-delay: 390ms;
}

.hero-dashboard > :nth-child(3) {
  animation-delay: 520ms;
}

.badge-row {
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 30px;
  padding: 0 13px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 850;
}

.badge svg {
  width: 15px;
  height: 15px;
}

.badge-green {
  color: #108643;
  background: var(--green-soft);
}

.badge-blue {
  color: var(--blue);
  background: var(--blue-soft);
}

.eyebrow,
.section-kicker {
  margin: 0 0 12px;
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 760px;
  margin: 0;
  color: var(--ink);
  font-size: clamp(2.7rem, 4.55vw, 4.7rem);
  line-height: 1.05;
  letter-spacing: 0;
}

.hero h1 span {
  position: relative;
  display: inline-block;
  color: var(--blue);
  white-space: nowrap;
}

.hero h1 span::after {
  content: "";
  position: absolute;
  left: 0.08em;
  right: 0.05em;
  bottom: 0.02em;
  height: 0.12em;
  border-radius: 999px;
  background: var(--blue);
  transform: rotate(-2deg);
  opacity: 0.82;
}

.hero-lede {
  max-width: 650px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.4vw, 1.18rem);
}

.hero-actions {
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 26px;
}

.hero-actions svg,
.button svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.hero-dashboard {
  align-self: center;
  display: grid;
  gap: 18px;
  max-width: 430px;
}

.floating-card,
.opportunity-panel,
.bento-card,
.comparison-card,
.toolkit-grid article,
.traffic-card,
.scenario-grid article,
.faq-grid details,
.calendly-shell {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(216, 225, 238, 0.94);
  border-radius: var(--radius);
  box-shadow: 0 10px 24px rgba(10, 45, 91, 0.04);
  transition:
    transform var(--motion-med) var(--ease-out),
    border-color var(--motion-fast) ease,
    box-shadow var(--motion-med) var(--ease-out),
    background var(--motion-fast) ease;
}

.floating-card {
  box-shadow: var(--shadow-card);
}

.floating-card:hover,
.opportunity-panel:hover,
.comparison-card:hover,
.toolkit-grid article:hover,
.traffic-card:hover,
.scenario-grid article:hover,
.faq-grid details:hover {
  border-color: rgba(37, 99, 235, 0.32);
  box-shadow: var(--shadow-soft);
  transform: translateY(-3px);
}

.motion-reveal {
  opacity: 0;
  transform: translate3d(0, 22px, 0);
  transition:
    opacity var(--motion-slow) var(--ease-out),
    transform var(--motion-slow) var(--ease-out);
  transition-delay: calc(var(--reveal-index, 0) * 58ms);
  will-change: opacity, transform;
}

.motion-reveal.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.detected-card {
  padding: 22px;
}

.mini-label {
  display: inline-flex;
  margin-bottom: 10px;
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.floating-card h2,
.detected-card h2,
.impact-card h2,
.progress-card h2 {
  margin: 0;
  color: var(--navy);
  font-size: 1rem;
  font-weight: 900;
}

.detected-card h2 {
  font-size: 1.3rem;
}

.detected-card p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.mini-flow {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  margin-top: 20px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.mini-flow strong {
  position: relative;
  display: block;
  height: 5px;
  overflow: hidden;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--blue), var(--green));
  transform-origin: left;
  animation: lineDraw 900ms var(--ease-out) 720ms both;
}

.impact-card {
  padding: 22px 22px 8px;
}

.impact-card dl {
  margin: 16px 0 0;
}

.impact-card div {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(120px, 1fr);
  gap: 14px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.impact-card dt {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 800;
}

.impact-card dt svg {
  width: 20px;
  height: 20px;
  color: var(--blue);
}

.impact-card dd {
  margin: 0;
  color: var(--navy);
  font-size: 0.86rem;
  font-weight: 850;
}

.progress-card {
  padding: 20px;
}

.progress-card > div:first-child,
.progress-labels {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.progress-card span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.progress-line {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, 1fr) 30px;
  align-items: center;
  margin: 24px 4px 10px;
}

.progress-line::before {
  content: "";
  position: absolute;
  left: 0;
  right: 20px;
  top: 50%;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--blue), var(--green));
  transform: translateY(-50%) scaleX(0);
  transform-origin: left;
  animation: progressDraw 950ms var(--ease-out) 720ms forwards;
}

@keyframes progressDraw {
  to {
    transform: translateY(-50%) scaleX(1);
  }
}

.progress-line span,
.progress-line strong {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 15px;
  height: 15px;
  color: #fff;
  background: #fff;
  border: 4px solid var(--blue);
  border-radius: 50%;
  animation: softPop 420ms var(--ease-snap) both;
}

.progress-line span:nth-child(1) {
  animation-delay: 820ms;
}

.progress-line span:nth-child(2) {
  animation-delay: 900ms;
}

.progress-line span:nth-child(3) {
  animation-delay: 980ms;
}

.progress-line span:nth-child(4) {
  animation-delay: 1060ms;
}

.progress-line span:nth-child(5) {
  animation-delay: 1140ms;
}

.progress-line strong {
  animation-delay: 1220ms;
}

.progress-line span:nth-child(5) {
  border-color: var(--green);
}

.progress-line strong {
  width: 34px;
  height: 34px;
  color: #fff;
  background: var(--green);
  border-color: var(--green);
}

.problem-band {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 34px;
  align-items: center;
  padding: 42px clamp(24px, 5vw, 70px);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.problem-icon,
.icon-ring {
  display: grid;
  place-items: center;
  color: var(--blue);
  background: var(--blue-soft);
  border-radius: 50%;
}

.problem-icon {
  width: 86px;
  height: 86px;
  font-size: 42px;
}

h2,
h3 {
  color: var(--navy);
  letter-spacing: 0;
}

.problem-band h2,
.section-heading h2,
.timeline-sticky h2,
.booking-copy h2 {
  margin: 0;
  color: var(--navy);
  font-weight: 900;
}

.problem-band h2 {
  font-size: clamp(1.55rem, 2vw, 2rem);
}

.problem-band p,
.section-heading p,
.hero-lede,
.task-card span,
.opportunity-panel strong,
.bento-card p,
.timeline-sticky p,
.timeline-card p,
.comparison-card li,
.toolkit-grid p,
.traffic-card p,
.scenario-grid p,
.faq-grid p,
.booking-copy p,
.site-footer p,
.calendly-header span {
  color: var(--muted);
}

.problem-band p:last-child {
  margin: 8px 0 0;
}

.section {
  padding: 56px clamp(24px, 5vw, 70px);
  border-bottom: 1px solid var(--line);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 28px;
}

.section-heading.wide {
  max-width: 900px;
}

.section-heading h2,
.timeline-sticky h2,
.booking-copy h2 {
  font-size: clamp(2rem, 4vw, 3.3rem);
  line-height: 1.08;
}

.section-heading p {
  margin: 12px 0 0;
  font-size: 1.02rem;
}

.diagnostic-section,
.diagnostic-layout {
  overflow-anchor: none;
}

.diagnostic-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(360px, 0.9fr);
  gap: 22px;
  align-items: start;
}

.task-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  overflow-anchor: none;
}

.task-card {
  position: relative;
  display: grid;
  gap: 18px;
  min-height: 136px;
  padding: 20px;
  overflow: hidden;
  color: var(--navy);
  text-align: left;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 10px 24px rgba(10, 45, 91, 0.04);
  transition:
    transform 220ms var(--ease-out),
    border-color 220ms ease,
    box-shadow 220ms var(--ease-out),
    background 220ms ease;
  will-change: transform;
  overflow-anchor: none;
}

.task-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(37, 99, 235, 0.1), transparent 48%),
    radial-gradient(circle at 18% 18%, rgba(34, 197, 94, 0.14), transparent 24%);
  opacity: 0;
  transform: scale(0.96);
  transition:
    opacity 240ms var(--ease-out),
    transform 320ms var(--ease-out);
  pointer-events: none;
}

.task-card > * {
  position: relative;
  z-index: 1;
}

.task-card:hover {
  border-color: rgba(37, 99, 235, 0.75);
  box-shadow: 0 18px 40px rgba(37, 99, 235, 0.12);
  transform: translateY(-4px);
}

.task-card.is-active {
  border-color: rgba(37, 99, 235, 0.84);
  background: linear-gradient(180deg, #ffffff, #f4f8ff);
  box-shadow:
    inset 0 0 0 1px rgba(37, 99, 235, 0.18),
    0 18px 42px rgba(37, 99, 235, 0.14);
}

.task-card.is-active::after {
  opacity: 1;
  transform: scale(1);
}

.task-card.is-active svg {
  animation: iconPop 340ms var(--ease-snap);
}

.task-card.is-active::before {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(37, 99, 235, 0.22);
  border-radius: calc(var(--radius) - 2px);
  animation: selectHalo 520ms var(--ease-out);
  pointer-events: none;
}

@keyframes iconPop {
  0% {
    transform: scale(0.88);
  }
  58% {
    transform: scale(1.14);
  }
  100% {
    transform: scale(1);
  }
}

.task-card svg {
  width: 30px;
  height: 30px;
  color: var(--blue);
}

.task-card span {
  color: var(--navy);
  font-size: 0.95rem;
  font-weight: 850;
}

.opportunity-panel {
  position: sticky;
  top: 96px;
  display: grid;
  grid-template-rows: auto auto var(--diagnostic-result-height) auto;
  min-height: var(--diagnostic-panel-min-height);
  padding: 26px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  overflow-anchor: none;
}

.opportunity-panel.is-measuring {
  position: absolute !important;
  top: 0 !important;
  left: -10000px !important;
  z-index: -1 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  transform: none !important;
  animation: none !important;
  transition: none !important;
}

.opportunity-panel.is-updating,
.detected-card.is-updating,
.impact-card.is-updating {
  animation: panelGlow 420ms var(--ease-out);
}

.opportunity-panel.is-updating::after,
.detected-card.is-updating::after,
.impact-card.is-updating::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(100deg, transparent 0%, rgba(37, 99, 235, 0.1) 48%, transparent 78%);
  animation: panelSweep 520ms var(--ease-out) both;
  pointer-events: none;
}

.opportunity-panel > *,
.detected-card > *,
.impact-card > * {
  position: relative;
  z-index: 1;
}

.opportunity-panel.is-updating .panel-result-stack {
  animation: resultStackRefresh 420ms var(--ease-out) both;
}

.opportunity-panel.is-updating .panel-row {
  animation: rowRefresh 380ms var(--ease-out) both;
}

.opportunity-panel.is-updating .panel-row strong {
  animation: valueFocus 420ms var(--ease-out) both;
}

.opportunity-panel.is-updating .panel-row:nth-child(2) {
  animation-delay: 45ms;
}

.opportunity-panel.is-updating .panel-row:nth-child(3) {
  animation-delay: 90ms;
}

.opportunity-panel.is-updating .panel-row:nth-child(4) {
  animation-delay: 135ms;
}

@keyframes panelGlow {
  0% {
    box-shadow: var(--shadow-soft);
  }
  48% {
    border-color: rgba(37, 99, 235, 0.55);
    box-shadow: 0 22px 54px rgba(37, 99, 235, 0.18);
  }
  100% {
    box-shadow: var(--shadow-soft);
  }
}

@keyframes panelSweep {
  from {
    transform: translateX(-120%);
  }
  to {
    transform: translateX(120%);
  }
}

@keyframes rowRefresh {
  from {
    opacity: 0;
    transform: translate3d(0, 8px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes valueFocus {
  0% {
    color: var(--navy);
  }
  45% {
    color: var(--blue);
  }
  100% {
    color: var(--navy);
  }
}

@keyframes resultStackRefresh {
  0% {
    filter: saturate(0.9);
    transform: translate3d(0, 10px, 0) scale(0.988);
  }
  58% {
    filter: saturate(1.08);
    transform: translate3d(0, -2px, 0) scale(1.004);
  }
  100% {
    filter: saturate(1);
    transform: translate3d(0, 0, 0) scale(1);
  }
}

.opportunity-panel h3 {
  margin: 0 0 18px;
  font-size: 1.8rem;
}

.panel-result-stack {
  display: grid;
  align-content: start;
  height: var(--diagnostic-result-height);
  min-height: 0;
  overflow: hidden;
  overflow-anchor: none;
}

.panel-row {
  display: grid;
  gap: 6px;
  min-height: 84px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  min-width: 0;
}

.panel-row span {
  color: var(--blue);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
  min-width: 0;
}

.panel-row strong {
  font-size: 0.98rem;
  line-height: 1.38;
  min-width: 0;
  overflow-wrap: anywhere;
}

.panel-cta {
  align-self: end;
  width: 100%;
  margin-top: 18px;
  position: relative;
  overflow: hidden;
}

.panel-cta::after,
.button.primary::after,
.nav-cta::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 0%, rgba(255, 255, 255, 0.22) 45%, transparent 72%);
  transform: translateX(-120%);
  pointer-events: none;
}

.panel-cta:hover::after,
.button.primary:hover::after,
.nav-cta:hover::after {
  animation: shimmer 760ms var(--ease-out);
}

.bento-section {
  background: #fff;
}

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

.bento-card {
  min-height: 260px;
  padding: 24px;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease;
}

.bento-card:hover {
  border-color: rgba(37, 99, 235, 0.7);
  box-shadow: var(--shadow-soft);
  transform: translateY(-4px);
}

.bento-large {
  grid-column: span 2;
  grid-row: span 2;
  min-height: 420px;
  background:
    radial-gradient(circle at 86% 12%, rgba(230, 240, 255, 0.95), transparent 18rem),
    #fff;
}

.icon-ring {
  width: 58px;
  height: 58px;
  margin-bottom: 24px;
  font-size: 31px;
  background: #fff;
  border: 2px solid var(--blue);
}

.bento-card h3,
.timeline-card h3,
.comparison-card h3,
.toolkit-grid h3,
.traffic-card h3,
.scenario-grid h3 {
  margin: 0;
  font-size: 1.16rem;
  font-weight: 900;
  line-height: 1.22;
}

.bento-card p {
  margin: 14px 0 0;
  font-size: 0.92rem;
}

.bento-card strong,
.scenario-grid strong {
  display: block;
  color: var(--blue);
  font-size: 0.76rem;
  text-transform: uppercase;
}

.story-grid {
  display: grid;
  gap: 16px;
  margin-top: 24px;
}

.timeline-section {
  background: linear-gradient(180deg, #fbfdff, #ffffff);
}

.timeline-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.78fr) minmax(0, 1.22fr);
  gap: clamp(28px, 5vw, 66px);
}

.timeline-sticky {
  position: sticky;
  top: 104px;
  align-self: start;
}

.timeline-sticky p {
  margin: 16px 0 0;
}

.timeline-cards {
  position: relative;
  display: grid;
  gap: 18px;
}

.timeline-cards::before {
  content: "";
  position: absolute;
  left: 22px;
  top: 18px;
  bottom: 18px;
  width: 4px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--blue), var(--green));
}

.timeline-card {
  position: relative;
  display: grid;
  gap: 8px;
  margin-left: 48px;
  padding: 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  opacity: 0.62;
  transform: translateY(10px);
  transition:
    opacity 360ms ease,
    transform 360ms ease,
    border-color 180ms ease;
}

.timeline-card::before {
  content: "";
  position: absolute;
  left: -38px;
  top: 26px;
  width: 18px;
  height: 18px;
  background: #fff;
  border: 5px solid var(--blue);
  border-radius: 50%;
}

.timeline-card:last-child::before {
  border-color: var(--green);
}

.timeline-card.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.timeline-card.is-visible::before {
  animation: softPop 420ms var(--ease-snap) both;
}

.timeline-card span {
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.timeline-card p {
  margin: 0;
}

.comparison-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.comparison-card {
  padding: 28px;
}

.winner-card {
  background: linear-gradient(180deg, #f3f8ff, #ffffff);
  border-color: rgba(37, 99, 235, 0.35);
}

.muted-card {
  background: #f8fafc;
}

.comparison-card ul,
.traffic-card ul {
  display: grid;
  gap: 12px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.comparison-card li {
  position: relative;
  padding-left: 24px;
}

.comparison-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--blue);
}

.muted-card li::before {
  background: var(--muted);
}

.toolkit-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.toolkit-grid article {
  display: grid;
  gap: 10px;
  min-height: 230px;
  padding: 22px;
}

.toolkit-grid article span {
  justify-self: start;
  padding: 5px 9px;
  color: var(--blue);
  background: var(--blue-soft);
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 900;
}

.toolkit-grid svg {
  width: 32px;
  height: 32px;
  color: var(--blue);
}

.toolkit-grid p {
  margin: 0;
  font-size: 0.9rem;
}

.safety-section {
  background: #fff;
}

.traffic-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.traffic-card {
  position: relative;
  min-height: 250px;
  padding: 26px;
  overflow: hidden;
}

.traffic-card::before {
  content: "";
  display: block;
  width: 42px;
  height: 42px;
  margin-bottom: 22px;
  border-radius: 50%;
  transition:
    box-shadow var(--motion-med) var(--ease-out),
    transform var(--motion-med) var(--ease-out);
}

.traffic-card:hover::before {
  box-shadow: 0 0 0 9px rgba(37, 99, 235, 0.08);
  transform: scale(1.04);
}

.traffic-card.green::before {
  background: var(--green);
}

.traffic-card.yellow::before {
  background: var(--yellow);
}

.traffic-card.red::before {
  background: var(--red);
}

.traffic-card span {
  display: inline-flex;
  margin-bottom: 10px;
  font-size: 0.8rem;
  font-weight: 900;
  text-transform: uppercase;
}

.traffic-card.green {
  background: linear-gradient(180deg, var(--green-soft), #fff);
}

.traffic-card.yellow {
  background: linear-gradient(180deg, var(--yellow-soft), #fff);
}

.traffic-card.red {
  background: linear-gradient(180deg, var(--red-soft), #fff);
}

.traffic-card p {
  margin: 12px 0 0;
}

.scenario-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.scenario-grid article {
  padding: 24px;
}

.scenario-grid p {
  margin: 14px 0 0;
}

.resources-section,
.blog-page {
  background:
    radial-gradient(circle at 90% 8%, rgba(230, 240, 255, 0.9), transparent 24rem),
    #fff;
}

.resource-grid,
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.resource-card,
.blog-card,
.article-toc,
.article-cta,
.article-note {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(216, 225, 238, 0.94);
  border-radius: var(--radius);
  box-shadow: 0 12px 30px rgba(10, 45, 91, 0.06);
}

.resource-card,
.blog-card {
  min-height: 230px;
  padding: 24px;
  transition:
    transform var(--motion-med) var(--ease-out),
    border-color var(--motion-fast) ease,
    box-shadow var(--motion-med) var(--ease-out);
}

.resource-card:hover,
.blog-card:hover {
  border-color: rgba(37, 99, 235, 0.34);
  box-shadow: var(--shadow-soft);
  transform: translateY(-3px);
}

.resource-card span,
.blog-card span,
.article-meta span {
  display: inline-flex;
  margin-bottom: 12px;
  color: var(--blue);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.resource-card h3,
.blog-card h2,
.blog-card h3 {
  margin: 0;
  color: var(--navy);
  font-size: 1.18rem;
  line-height: 1.22;
}

.resource-card p,
.blog-card p {
  margin: 14px 0 0;
}

.resource-card a,
.blog-card a,
.article-body a {
  color: var(--navy);
  text-decoration: underline;
  text-decoration-color: rgba(37, 99, 235, 0.38);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.resource-more {
  margin-top: 20px;
}

.blog-page {
  min-height: 100vh;
}

.blog-header {
  max-width: var(--max);
  margin: 0 auto;
  padding: 32px clamp(24px, 5vw, 70px) 0;
}

.blog-hero,
.article-hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: 70px clamp(24px, 5vw, 70px) 48px;
}

.blog-hero h1,
.article-hero h1 {
  max-width: 900px;
  margin: 12px 0 0;
  color: var(--navy);
  font-size: clamp(2.5rem, 6vw, 5.2rem);
  line-height: 0.98;
}

.blog-hero p,
.article-hero p {
  max-width: 760px;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 1.08rem;
}

.blog-main,
.article-main {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 clamp(24px, 5vw, 70px) 80px;
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.74fr) minmax(260px, 0.26fr);
  gap: 28px;
  align-items: start;
}

.article-body {
  max-width: 820px;
}

.article-body h2 {
  margin: 42px 0 12px;
  color: var(--navy);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  line-height: 1.08;
}

.article-body h3 {
  margin: 26px 0 10px;
  color: var(--navy);
}

.article-body p,
.article-body li {
  color: var(--ink);
  font-size: 1.04rem;
}

.article-body p {
  margin: 14px 0 0;
}

.article-body ul,
.article-body ol {
  display: grid;
  gap: 10px;
  margin: 16px 0 0;
  padding-left: 22px;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.article-meta span {
  margin: 0;
  padding: 8px 12px;
  background: var(--blue-soft);
  border-radius: 999px;
}

.article-toc,
.article-cta,
.article-note {
  padding: 22px;
}

.article-toc {
  position: sticky;
  top: 96px;
}

.article-toc strong,
.article-cta strong,
.article-note strong {
  color: var(--navy);
}

.article-toc nav {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.article-toc a {
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 800;
}

.article-cta,
.article-note {
  margin-top: 24px;
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.faq-grid details {
  padding: 20px 22px;
}

.faq-grid summary {
  color: var(--navy);
  cursor: pointer;
  font-weight: 900;
  transition: color var(--motion-fast) ease;
}

.faq-grid summary:hover {
  color: var(--blue);
}

.faq-grid details[open] {
  border-color: rgba(37, 99, 235, 0.38);
  box-shadow: var(--shadow-soft);
}

.faq-grid details[open] p {
  animation: riseFade 260ms var(--ease-out) both;
}

.faq-grid p {
  margin: 12px 0 0;
}

.calendly-section {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(420px, 1.22fr);
  gap: 24px;
  align-items: start;
  background:
    radial-gradient(circle at 20% 20%, rgba(230, 240, 255, 0.96), transparent 24rem),
    #fff;
}

.booking-copy {
  position: sticky;
  top: 104px;
}

.booking-copy p {
  margin: 16px 0 0;
  font-size: 1.06rem;
}

.calendly-shell {
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.calendly-header {
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
}

.calendly-header strong,
.calendly-header span {
  display: block;
}

.calendly-header strong {
  color: var(--navy);
}

.calendly-header span {
  margin-top: 4px;
  font-size: 0.86rem;
}

.calendly-header a {
  flex: 0 0 auto;
  color: var(--blue);
  font-size: 0.86rem;
  font-weight: 900;
}

.calendly-embed-wrap {
  position: relative;
  min-height: 760px;
  background:
    radial-gradient(circle at 50% 20%, rgba(230, 240, 255, 0.88), transparent 18rem),
    #fff;
}

.calendly-inline-widget {
  min-width: 320px;
  height: 760px;
}

.calendly-placeholder {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 12px;
  padding: 28px;
  text-align: center;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(245, 249, 255, 0.9));
}

.calendly-placeholder svg {
  width: 48px;
  height: 48px;
  color: var(--blue);
  animation: calmPulse 2s ease-in-out infinite;
}

.calendly-placeholder strong {
  color: var(--navy);
  font-size: 1.25rem;
}

.calendly-placeholder span {
  max-width: 340px;
  color: var(--muted);
}

.calendly-placeholder .button {
  margin-top: 8px;
}

.calendly-shell.is-loaded .calendly-placeholder {
  display: none;
}

.site-footer {
  justify-content: space-between;
  gap: 18px;
  padding: 20px clamp(24px, 5vw, 70px) 24px;
  color: var(--navy);
}

.site-footer p {
  margin: 0;
  font-size: 0.84rem;
  font-weight: 750;
}

.site-footer nav {
  display: flex;
  gap: 18px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.mobile-sticky-cta {
  display: none;
}

@media (max-width: 1120px) {
  .nav-links {
    display: none;
  }

  .task-grid,
  .toolkit-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .scenario-grid,
  .traffic-grid,
  .resource-grid,
  .blog-grid,
  .article-layout {
    grid-template-columns: 1fr;
  }

  .article-toc {
    position: static;
  }
}

@media (max-width: 900px) {
  :root {
    --diagnostic-result-height: 420px;
    --diagnostic-panel-min-height: 632px;
  }

  .page-frame {
    width: 100%;
    margin: 0;
    border-width: 0;
    border-radius: 0;
  }

  .site-header {
    height: auto;
    min-height: 72px;
    padding: 14px 20px;
  }

  .brand {
    font-size: 0.95rem;
  }

  .nav-cta {
    display: none;
  }

  .hero,
  .diagnostic-layout,
  .timeline-layout,
  .comparison-grid,
  .calendly-section {
    grid-template-columns: 1fr;
  }

  .hero {
    gap: 34px;
    min-height: auto;
    padding: 38px 20px 48px;
  }

  .hero::before {
    right: -22%;
    bottom: 10%;
    width: 420px;
  }

  .hero-dashboard {
    max-width: none;
  }

  .problem-band {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 18px;
  }

  .opportunity-panel,
  .timeline-sticky,
  .booking-copy {
    position: static;
  }

  .bento-large {
    grid-column: auto;
    grid-row: auto;
    min-height: 0;
  }

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

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

  .site-footer {
    padding-bottom: 92px;
  }

  .mobile-sticky-cta {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: 16px;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 52px;
    color: #fff;
    background: var(--blue);
    border-radius: var(--radius-sm);
    box-shadow: 0 18px 34px rgba(37, 99, 235, 0.28);
    font-weight: 900;
  }
}

@media (max-width: 640px) {
  :root {
    --diagnostic-result-height: 462px;
    --diagnostic-panel-min-height: 690px;
  }

  body {
    background: #fff;
  }

  .hero h1 {
    font-size: clamp(2.35rem, 11vw, 3.2rem);
  }

  .button,
  .hero-actions {
    width: 100%;
  }

  .problem-band,
  .section {
    padding-left: 20px;
    padding-right: 20px;
  }

  .task-grid,
  .bento-grid,
  .toolkit-grid,
  .resource-grid,
  .blog-grid {
    grid-template-columns: 1fr;
  }

  .problem-icon {
    width: 70px;
    height: 70px;
    font-size: 34px;
  }

  .impact-card div {
    grid-template-columns: 1fr;
    gap: 6px;
  }

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

  .calendly-inline-widget {
    min-width: 0;
    height: 720px;
  }

  .calendly-embed-wrap {
    min-height: 720px;
  }

  .opportunity-panel {
    padding: 22px;
  }

  .panel-row {
    min-height: 96px;
    padding: 13px 0;
  }

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

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  .motion-reveal,
  .motion-reveal.is-visible,
  .hero-copy-block > *,
  .hero-dashboard > * {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
    transition: none !important;
  }
}
