:root {
  --bg: #ffffff;
  --paper: rgba(255, 255, 255, 0.72);
  --paper-strong: rgba(255, 255, 255, 0.86);
  --glass: rgba(255, 255, 255, 0.66);
  --glass-strong: rgba(255, 255, 255, 0.82);
  --ink: #111111;
  --muted: #62656c;
  --faint: #9297a0;
  --line: rgba(21, 21, 21, 0.1);
  --line-strong: rgba(21, 21, 21, 0.16);
  --red: #00BFFF;
  --red-deep: #0099cc;
  --red-soft: rgba(0, 191, 255, 0.1);
  --blue: #00BFFF;
  --blue-soft: rgba(0, 191, 255, 0.08);
  --charcoal: #171717;
  --charcoal-soft: #242424;
  --shadow: 0 18px 46px rgba(15, 23, 42, 0.07);
  --shadow-soft: 0 12px 28px rgba(15, 23, 42, 0.055);
  --glass-shadow: 0 22px 54px rgba(15, 23, 42, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.82);
  --radius: 24px;
  --radius-sm: 18px;
  --max: 1200px;
}

body.dark-mode {
  --bg: #090a0c;
  --paper: rgba(18, 20, 25, 0.58);
  --paper-strong: rgba(24, 27, 33, 0.68);
  --glass: rgba(18, 20, 25, 0.48);
  --glass-strong: rgba(25, 28, 34, 0.62);
  --ink: #f7f7f8;
  --muted: #a9afba;
  --faint: #727987;
  --line: rgba(255, 255, 255, 0.075);
  --line-strong: rgba(255, 255, 255, 0.12);
  --red-soft: rgba(0, 191, 255, 0.16);
  --blue-soft: rgba(99, 147, 255, 0.14);
  --charcoal: #f7f7f8;
  --charcoal-soft: #e6e7eb;
  --glass-shadow: 0 24px 70px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.075);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 18% 0%, rgba(0, 191, 255, 0.06), transparent 30rem),
    radial-gradient(circle at 88% 14%, rgba(0, 191, 255, 0.055), transparent 28rem),
    #ffffff;
  font-family: var(--gh-font-body, Manrope, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif);
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

body.dark-mode {
  background:
    radial-gradient(circle at 16% 0%, rgba(0, 191, 255, 0.1), transparent 28rem),
    radial-gradient(circle at 88% 14%, rgba(0, 191, 255, 0.12), transparent 30rem),
    #090a0c;
}

body::before {
  content: none;
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(21, 21, 21, 0.09) 0.7px, transparent 0.7px);
  background-size: 18px 18px;
  mask-image: linear-gradient(180deg, transparent, black 12%, transparent 72%);
  opacity: 0.22;
}

.page-glow {
  display: none;
}

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

p {
  margin: 0;
  color: var(--muted);
  font-size: 1.01rem;
  font-weight: 400;
  line-height: 1.76;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--ink);
  font-family: var(--gh-font-heading, Manrope, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif);
  letter-spacing: 0;
}

h1 {
  max-width: 900px;
  font-size: clamp(2.85rem, 6.2vw, 5.9rem);
  font-weight: 500;
  line-height: 0.98;
}

h2 {
  max-width: 980px;
  font-size: clamp(2rem, 3.5vw, 3.7rem);
  font-weight: 600;
  line-height: 1.02;
}

h3 {
  font-size: 1.06rem;
  font-weight: 700;
  line-height: 1.24;
}

.site-header {
  position: sticky;
  top: 14px;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 18px;
  width: min(var(--max), calc(100% - 32px));
  min-height: 64px;
  margin: 14px auto 0;
  padding: 8px 8px 8px 18px;
  border: 1px solid rgba(21, 21, 21, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--glass-shadow);
  -webkit-backdrop-filter: blur(22px) saturate(145%);
  backdrop-filter: blur(22px) saturate(145%);
}

.brand,
.nav-links,
.header-cta,
.header-actions {
  display: flex;
  align-items: center;
}

.brand {
  gap: 11px;
  font-size: 0.92rem;
  font-weight: 800;
  white-space: nowrap;
}

.brand-text {
  color: var(--ink);
  letter-spacing: -0.01em;
}

.nav-links {
  justify-content: center;
  gap: 2px;
  padding: 4px;
  border: 1px solid rgba(21, 21, 21, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.62);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
}

.nav-links ul,
.footer-links ul {
  display: contents;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-links li,
.footer-links li {
  display: contents;
}

.nav-links a {
  padding: 9px 13px;
  border-radius: 999px;
  color: #5d574d;
  font-size: 0.83rem;
  font-weight: 600;
  transition: color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.nav-links a:hover,
.nav-links a.is-active {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 8px 18px rgba(15, 23, 42, 0.06);
}

.header-actions {
  justify-self: end;
  gap: 8px;
}

.language-switcher {
  display: inline-flex;
  gap: 2px;
  padding: 3px;
  border: 1px solid rgba(21, 21, 21, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.5);
  -webkit-backdrop-filter: blur(14px) saturate(145%);
  backdrop-filter: blur(14px) saturate(145%);
}

.language-switcher a {
  display: inline-flex;
  min-width: 34px;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
}

.language-switcher a:hover,
.language-switcher a.is-active {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.72);
}

.theme-toggle {
  position: relative;
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  appearance: none;
  border: 1px solid rgba(21, 21, 21, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.84);
  cursor: pointer;
  overflow: hidden;
  -webkit-backdrop-filter: blur(16px) saturate(145%);
  backdrop-filter: blur(16px) saturate(145%);
}

.nav-search {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 14px;
  appearance: none;
  border: 1px solid rgba(21, 21, 21, 0.1);
  border-radius: 999px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.68);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.84);
  -webkit-backdrop-filter: blur(16px) saturate(145%);
  backdrop-filter: blur(16px) saturate(145%);
  cursor: pointer;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 800;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.nav-search:hover {
  transform: translateY(-1px);
  border-color: rgba(0, 191, 255, 0.18);
  background: rgba(255, 255, 255, 0.86);
}

.nav-search i {
  font-size: 0.86rem;
}

.theme-icon {
  position: absolute;
  color: var(--ink);
  font-size: 1rem;
  line-height: 1;
  transition: opacity 220ms ease, transform 220ms ease, color 220ms ease;
}

.theme-icon-sun {
  opacity: 1;
  transform: translateY(0) rotate(0deg) scale(1);
}

.theme-icon-moon {
  opacity: 0;
  transform: translateY(18px) rotate(-24deg) scale(0.72);
}

.theme-toggle:hover .theme-icon-sun {
  transform: translateY(0) rotate(18deg) scale(1.06);
}

.theme-toggle:hover .theme-icon-moon {
  transform: translateY(18px) rotate(-12deg) scale(0.78);
}

body.dark-mode .theme-toggle {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.08);
}

body.dark-mode .theme-icon {
  color: rgba(247, 247, 248, 0.92);
}

body.dark-mode .theme-icon-sun {
  opacity: 0;
  transform: translateY(-18px) rotate(24deg) scale(0.72);
}

body.dark-mode .theme-icon-moon {
  opacity: 1;
  transform: translateY(0) rotate(0deg) scale(1);
}

body.dark-mode .theme-toggle:hover .theme-icon-moon {
  transform: translateY(0) rotate(-10deg) scale(1.06);
}

.header-cta {
  position: relative;
  min-height: 46px;
  padding: 0 17px;
  border-radius: 999px;
  color: #fff;
  background: var(--ink);
  box-shadow: none;
  font-size: 0.85rem;
  font-weight: 700;
}

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

.section,
.hero,
.final-cta {
  width: min(var(--max), calc(100% - 36px));
  margin: 0 auto;
}

.hero {
  min-height: auto;
  align-items: start;
  padding: 72px 0 54px;
}

.section {
  position: relative;
  padding: 58px 0;
}

.section:not(.hero)::before {
  content: none;
}

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

.section-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
}

.hero-copy,
.section-intro {
  grid-column: 2 / span 10;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  text-align: center;
}

.eyebrow,
.section-kicker {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 8px;
  color: var(--red);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.eyebrow::before,
.section-kicker::before {
  content: "";
  width: 18px;
  height: 2px;
  border-radius: 0;
  background: var(--red);
  box-shadow: none;
}

.hero-subhead {
  max-width: 720px;
  color: #5f594f;
  font-size: clamp(1.03rem, 1.7vw, 1.2rem);
  font-weight: 400;
}

.hero-actions {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: center;
}

.button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  padding: 0 19px;
  border: 1px solid rgba(21, 21, 21, 0.12);
  border-radius: 999px;
  font-size: 0.94rem;
  font-weight: 700;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.button-primary {
  position: relative;
  overflow: hidden;
  border-color: rgba(227, 27, 35, 0.12);
  color: #fff;
  background: var(--ink);
  box-shadow: none;
}

.button-primary::after {
  content: "";
  position: absolute;
  inset: -70% auto -70% -45%;
  width: 34%;
  transform: rotate(18deg);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.42), transparent);
  animation: buttonSheen 5.8s ease-in-out infinite;
}

.button-secondary {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.72);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
}

.button-secondary:hover {
  border-color: rgba(21, 21, 21, 0.2);
  background: #f7f7f8;
}

.trust-line {
  max-width: 760px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: var(--muted);
  font-size: 0.92rem;
}

.section-intro,
.section-heading {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.section-heading {
  max-width: 960px;
  margin-bottom: 22px;
}

.audience-grid button:focus-visible {
  outline: 2px solid rgba(0, 191, 255, 0.32);
  outline-offset: 3px;
}

.audience-section .section-grid {
  align-items: start;
}

.ai-shape-section {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  padding: clamp(28px, 6vw, 76px) 0;
}

.ai-shape-section::before,
.ai-shape-section::after {
  content: "";
  position: absolute;
  z-index: -1;
  pointer-events: none;
  border: 1px solid rgba(21, 21, 21, 0.06);
  opacity: 0.56;
}

.ai-shape-section::before {
  top: 6%;
  right: -5%;
  width: 92px;
  height: 92px;
  border-radius: 28px;
  transform: rotate(18deg);
  background: radial-gradient(circle at 35% 35%, rgba(0, 191, 255, 0.08), transparent 58%);
}

.ai-shape-section::after {
  bottom: 10%;
  left: -4%;
  width: 126px;
  height: 126px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(0, 191, 255, 0.07), transparent 62%);
}

.ai-shape-stage {
  position: relative;
  display: grid;
  min-height: clamp(360px, 44vw, 560px);
  place-items: center;
  overflow: hidden;
  border-radius: 44px;
  background:
    radial-gradient(circle at 50% 42%, rgba(0, 191, 255, 0.09), transparent 16rem),
    radial-gradient(circle at 22% 70%, rgba(0, 191, 255, 0.075), transparent 15rem);
  perspective: 1200px;
  cursor: pointer;
  isolation: isolate;
}

.ai-shape-stage::before {
  content: none;
}

.scatter-field {
  position: absolute;
  inset: 9%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.36;
}

.scatter-field span {
  position: absolute;
  display: block;
  width: 76px;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(21, 21, 21, 0.1), rgba(0, 191, 255, 0.08), transparent);
  filter: blur(0.2px);
  animation: scatterFieldFloat 13s ease-in-out infinite;
}

.scatter-field span:nth-child(1) {
  top: 18%;
  left: 8%;
  rotate: -28deg;
}

.scatter-field span:nth-child(2) {
  top: 14%;
  right: 10%;
  width: 120px;
  rotate: 24deg;
  animation-delay: -4s;
}

.scatter-field span:nth-child(3) {
  bottom: 18%;
  left: 10%;
  width: 112px;
  rotate: 35deg;
  animation-delay: -7s;
}

.scatter-field span:nth-child(4) {
  right: 12%;
  bottom: 22%;
  rotate: -34deg;
  animation-delay: -2s;
}

.scatter-field span:nth-child(5) {
  top: 48%;
  left: 2%;
  width: 58px;
  rotate: 78deg;
  animation-delay: -10s;
}

.scatter-field span:nth-child(6) {
  top: 44%;
  right: 2%;
  width: 64px;
  rotate: -14deg;
  animation-delay: -6s;
}

.ai-shape {
  --rx: -10deg;
  --ry: 18deg;
  --glow-x: 50%;
  --glow-y: 46%;
  --pulse: 1;
  position: relative;
  z-index: 2;
  width: min(82%, 470px);
  aspect-ratio: 1;
  transform-style: preserve-3d;
  transform: rotateX(var(--rx)) rotateY(var(--ry)) scale(var(--pulse));
  transition: transform 90ms linear;
  will-change: transform;
}

.ai-shape.is-clicked {
  --pulse: 1.06;
}

.clean-stack::before {
  content: "";
  position: absolute;
  inset: 70% 6% 8%;
  z-index: -1;
  border-radius: 999px;
  background: radial-gradient(ellipse, rgba(15, 23, 42, 0.18), transparent 70%);
  filter: blur(28px);
  transform: rotateX(82deg) translateZ(-130px);
}

.stack-pack {
  position: absolute;
  inset: 0;
  z-index: 2;
  transform-style: preserve-3d;
  animation: none;
}

.pack-layer {
  --y: 0px;
  --z: 0px;
  --x-open: 0px;
  --y-open: 0px;
  --z-open: 0px;
  --r-open: 0deg;
  position: absolute;
  left: 50%;
  top: 50%;
  width: 74%;
  height: 62px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 24px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.16) 54%, rgba(255, 255, 255, 0.32)),
    radial-gradient(circle at 18% 22%, rgba(255, 255, 255, 0.82), transparent 26%),
    linear-gradient(90deg, rgba(0, 191, 255, 0.06), rgba(0, 191, 255, 0.085)),
    rgba(255, 255, 255, 0.28);
  box-shadow:
    0 28px 70px rgba(15, 23, 42, 0.1),
    0 10px 22px rgba(15, 23, 42, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.88),
    inset 0 -12px 24px rgba(15, 23, 42, 0.035);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  backdrop-filter: blur(18px) saturate(150%);
  transform-style: preserve-3d;
  transform: translate(-50%, -50%) rotateX(62deg) rotateZ(calc(-12deg + var(--r-open))) translate3d(var(--x-open), var(--y-open), var(--z-open));
  animation: none;
  transition: transform 360ms cubic-bezier(0.2, 0.8, 0.2, 1);
  will-change: transform;
  overflow: hidden;
}

.pack-layer::before {
  content: none;
}

.pack-layer::after {
  content: "";
  position: absolute;
  right: 18px;
  bottom: 13px;
  left: 18px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(0, 191, 255, 0.18), transparent 40%, rgba(0, 191, 255, 0.16));
  opacity: 0.42;
}

.pack-layer-one {
  --y: -94px;
  --z: 132px;
  --x-open: -84px;
  --y-open: -158px;
  --z-open: 204px;
  --r-open: -20deg;
  width: 62%;
}

.pack-layer-two {
  --y: -58px;
  --z: 80px;
  --x-open: 88px;
  --y-open: -104px;
  --z-open: 160px;
  --r-open: 18deg;
  width: 70%;
}

.pack-layer-three {
  --y: -22px;
  --z: 28px;
  --x-open: -112px;
  --y-open: -34px;
  --z-open: 108px;
  --r-open: -16deg;
  width: 78%;
}

.pack-layer-four {
  --y: 14px;
  --z: -24px;
  --x-open: 106px;
  --y-open: 28px;
  --z-open: 70px;
  --r-open: 15deg;
  width: 76%;
}

.pack-layer-five {
  --y: 50px;
  --z: -76px;
  --x-open: -74px;
  --y-open: 102px;
  --z-open: 22px;
  --r-open: -12deg;
  width: 68%;
}

.pack-layer-six {
  --y: 86px;
  --z: -128px;
  --x-open: 76px;
  --y-open: 160px;
  --z-open: -24px;
  --r-open: 18deg;
  width: 58%;
}

.ai-shape-section.is-visible .stack-pack {
  animation: stackPackBreathe 4s ease-in-out infinite;
}

.ai-shape-section.is-visible .pack-layer {
  animation: packExplode 4s cubic-bezier(0.76, 0, 0.24, 1) infinite;
}

.ai-shape-stage:hover .pack-layer {
  animation-play-state: paused;
  transform: translate(-50%, -50%) rotateX(62deg) rotateZ(calc(-12deg + var(--r-open))) translate3d(var(--x-open), var(--y-open), var(--z-open));
}

.ai-shape-copy {
  display: grid;
  gap: 18px;
  justify-items: start;
}

.ai-shape-copy h2 {
  max-width: 620px;
}

.ai-shape-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}

.ai-shape-points span {
  padding: 10px 13px;
  border: 1px solid rgba(21, 21, 21, 0.08);
  border-radius: 999px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.58);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.84);
  -webkit-backdrop-filter: blur(16px) saturate(145%);
  backdrop-filter: blur(16px) saturate(145%);
  font-size: 0.84rem;
  font-weight: 800;
}

body.dark-mode .site-header,
body.dark-mode .nav-links,
body.dark-mode .nav-search,
body.dark-mode .theme-toggle,
body.dark-mode .ai-shape-stage,
body.dark-mode .fit-summary,
body.dark-mode .about-panel,
body.dark-mode .faq-list details,
body.dark-mode .final-cta {
  border-color: rgba(255, 255, 255, 0.075);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.025)),
    rgba(13, 15, 19, 0.58);
  box-shadow: 0 22px 64px rgba(0, 0, 0, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.055);
}

body.dark-mode .pack-layer,
body.dark-mode .ai-shape-points span,
body.dark-mode .audience-grid button {
  border-color: rgba(255, 255, 255, 0.045);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.025)),
    rgba(18, 20, 25, 0.52);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.055);
}

body.dark-mode .portrait-photo {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  box-shadow:
    0 30px 84px rgba(0, 0, 0, 0.34),
    0 0 0 10px rgba(255, 255, 255, 0.035),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

body.dark-mode .portrait-initials {
  color: #090a0c;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
}

body.dark-mode .profile-links a {
  color: rgba(247, 247, 248, 0.86);
  border-color: rgba(255, 255, 255, 0.055);
  background: rgba(255, 255, 255, 0.055);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.045);
}

body.dark-mode .profile-links a:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.09);
  background:
    linear-gradient(135deg, rgba(0, 191, 255, 0.18), rgba(0, 191, 255, 0.12)),
    rgba(255, 255, 255, 0.075);
}

body.dark-mode .audience-grid button.is-active {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.07);
  background:
    linear-gradient(135deg, rgba(0, 191, 255, 0.34), rgba(0, 191, 255, 0.22)),
    rgba(255, 255, 255, 0.075);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

body.dark-mode .button-primary,
body.dark-mode .header-cta {
  color: #090a0c;
  background: rgba(255, 255, 255, 0.92);
}

body.dark-mode .button-primary:hover,
body.dark-mode .header-cta:hover {
  color: #ffffff;
  background: var(--red);
}

body.dark-mode .button-secondary {
  color: var(--ink);
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.055);
}

body.dark-mode .language-switcher {
  border-color: rgba(255, 255, 255, 0.055);
  background: rgba(255, 255, 255, 0.045);
}

body.dark-mode .language-switcher a {
  color: rgba(247, 247, 248, 0.66);
}

body.dark-mode .language-switcher a:hover,
body.dark-mode .language-switcher a.is-active {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.075);
}

body.dark-mode .nav-search {
  color: rgba(247, 247, 248, 0.88);
}

body.dark-mode .nav-search:hover {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.1);
  background:
    linear-gradient(135deg, rgba(0, 191, 255, 0.14), rgba(0, 191, 255, 0.1)),
    rgba(255, 255, 255, 0.07);
}

body.dark-mode .audience-rail::before {
  background: linear-gradient(90deg, rgba(9, 10, 12, 0.94), transparent);
}

body.dark-mode .audience-rail::after {
  background: linear-gradient(270deg, rgba(9, 10, 12, 0.94), transparent);
}

body.dark-mode .hero-subhead,
body.dark-mode .trust-line,
body.dark-mode p {
  color: var(--muted);
}

body.dark-mode .nav-links a {
  color: rgba(247, 247, 248, 0.72);
}

body.dark-mode .nav-links a:hover,
body.dark-mode .nav-links a.is-active {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.075);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.055);
}

body.dark-mode .faq-list details {
  border-color: rgba(255, 255, 255, 0.055);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.045);
}

body.dark-mode .faq-list details[open] {
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

body.dark-mode .site-footer {
  border-color: rgba(255, 255, 255, 0.075);
  background:
    radial-gradient(circle at 88% 0%, rgba(0, 191, 255, 0.1), transparent 20rem),
    radial-gradient(circle at 6% 100%, rgba(0, 191, 255, 0.1), transparent 22rem),
    rgba(13, 15, 19, 0.42);
}

body.dark-mode .footer-links a {
  border-color: transparent;
  background: transparent;
}

body.dark-mode .footer-socials a {
  border-color: rgba(255, 255, 255, 0.075);
  background: rgba(255, 255, 255, 0.045);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.045);
}

body.dark-mode .ai-shape-stage::before {
  content: none;
}

body.dark-mode .scatter-field span {
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.12), rgba(0, 191, 255, 0.11), transparent);
}

body.dark-mode .pack-layer {
  border-color: rgba(255, 255, 255, 0.075);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.025) 56%, rgba(255, 255, 255, 0.045)),
    linear-gradient(90deg, rgba(0, 191, 255, 0.09), rgba(0, 191, 255, 0.08)),
    rgba(17, 19, 24, 0.62);
  box-shadow:
    0 30px 74px rgba(0, 0, 0, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    inset 0 -12px 24px rgba(0, 0, 0, 0.16);
}

body.dark-mode .clean-stack::before {
  background: radial-gradient(ellipse, rgba(0, 0, 0, 0.42), transparent 68%);
}

body.dark-mode .ai-shape-section::before,
body.dark-mode .ai-shape-section::after {
  border-color: rgba(255, 255, 255, 0.055);
  opacity: 0.44;
}

.audience-section .section-intro {
  grid-column: span 5;
}

.fit-summary {
  grid-column: span 7;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: minmax(182px, auto) auto;
  align-content: stretch;
  gap: 22px;
  min-height: 318px;
  padding: clamp(26px, 3.4vw, 42px);
  overflow: hidden;
  border: 1px solid rgba(21, 21, 21, 0.065);
  border-radius: 36px;
  background:
    radial-gradient(circle at 86% 18%, rgba(0, 191, 255, 0.08), transparent 15rem),
    radial-gradient(circle at 18% 100%, rgba(0, 191, 255, 0.08), transparent 18rem),
    linear-gradient(135deg, rgba(255, 255, 255, 0.74), rgba(255, 255, 255, 0.42)),
    rgba(255, 255, 255, 0.46);
  box-shadow: 0 20px 54px rgba(15, 23, 42, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.84);
  -webkit-backdrop-filter: blur(30px) saturate(155%);
  backdrop-filter: blur(30px) saturate(155%);
  transition: border-color 260ms ease, background 260ms ease, box-shadow 260ms ease;
}

.fit-summary::before {
  content: none;
}

.fit-summary::after {
  content: none;
}

.fit-summary-copy {
  display: grid;
  grid-template-rows: 24px 74px 74px;
  align-content: start;
  gap: 12px;
  min-width: 0;
  max-width: 690px;
  position: relative;
  z-index: 1;
}

.fit-summary strong {
  display: flex;
  align-items: center;
  overflow-wrap: anywhere;
  font-size: clamp(2rem, 2.6vw, 2.75rem);
  line-height: 1.02;
}

.fit-label {
  color: var(--red);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.fit-summary p {
  max-width: 560px;
  overflow: hidden;
}

.audience-rail {
  grid-column: 1 / -1;
  position: relative;
}

.audience-rail::before,
.audience-rail::after {
  content: "";
  position: absolute;
  top: 1px;
  bottom: 1px;
  z-index: 2;
  width: min(110px, 18vw);
  border-radius: 28px;
  pointer-events: none;
}

.audience-rail::before {
  left: 1px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.86), transparent);
}

.audience-rail::after {
  right: 1px;
  background: linear-gradient(270deg, rgba(255, 255, 255, 0.86), transparent);
}

.audience-grid {
  display: flex;
  flex-wrap: nowrap;
  align-content: flex-start;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 18px;
  padding: 16px 18px 20px;
  border: 0;
  border-radius: 28px;
  background: transparent;
  box-shadow: none;
  scrollbar-width: none;
}

.audience-grid::-webkit-scrollbar {
  display: none;
}

.audience-grid button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(21, 21, 21, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.62);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.86);
  color: var(--ink);
  font-size: 0.94rem;
  font-weight: 600;
}

.audience-grid button {
  flex: 0 0 auto;
  min-width: max-content;
  min-height: 52px;
  padding: 0 22px;
  appearance: none;
  cursor: pointer;
  font-family: inherit;
  scroll-snap-align: center;
  opacity: 0.62;
  transform: scale(0.96);
  transition: transform 220ms ease, border-color 220ms ease, background 220ms ease, color 220ms ease, box-shadow 220ms ease, opacity 220ms ease;
}

.audience-grid button:hover {
  opacity: 0.95;
  transform: scale(1.03);
}

.audience-grid button.is-active {
  opacity: 1;
  border-color: rgba(21, 21, 21, 0.09);
  background:
    linear-gradient(135deg, rgba(0, 191, 255, 0.1), rgba(0, 191, 255, 0.08)),
    rgba(255, 255, 255, 0.9);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.075), inset 0 1px 0 rgba(255, 255, 255, 0.96);
  transform: scale(1.06);
}

.audience-grid button:active {
  border-color: rgba(0, 191, 255, 0.2);
  transform: scale(1.01);
}

.about-copy p + p {
  margin-top: 14px;
}

.about-section .section-grid {
  align-items: stretch;
}

.about-panel {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(190px, 260px) 1fr;
  gap: clamp(28px, 4vw, 58px);
  align-items: center;
  padding: clamp(30px, 5vw, 64px);
  border: 1px solid rgba(21, 21, 21, 0.08);
  border-radius: 40px;
  background:
    radial-gradient(circle at 16% 18%, rgba(0, 191, 255, 0.08), transparent 20rem),
    radial-gradient(circle at 92% 20%, rgba(0, 191, 255, 0.06), transparent 24rem),
    linear-gradient(135deg, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0.48)),
    rgba(255, 255, 255, 0.56);
  box-shadow: var(--glass-shadow);
  -webkit-backdrop-filter: blur(24px) saturate(150%);
  backdrop-filter: blur(24px) saturate(150%);
}

.about-profile {
  position: relative;
  display: grid;
  min-height: 300px;
  align-content: center;
  justify-items: center;
  gap: 22px;
}

.portrait-photo {
  position: relative;
  z-index: 2;
  width: min(100%, 188px);
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  object-position: center 42%;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.42);
  box-shadow:
    0 30px 84px rgba(21, 21, 21, 0.18),
    0 0 0 10px rgba(255, 255, 255, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.78);
}

.portrait-initials {
  position: relative;
  z-index: 1;
  display: grid;
  width: 168px;
  height: 168px;
  place-items: center;
  border-radius: 50px;
  color: #fff;
  background: var(--charcoal);
  box-shadow: 0 28px 80px rgba(21, 21, 21, 0.22);
  font-size: 5.2rem;
  font-weight: 700;
  line-height: 1;
}

.profile-links {
  position: relative;
  z-index: 5;
  display: grid;
  width: min(100%, 250px);
  grid-template-columns: repeat(2, 1fr);
  gap: 9px;
}

.profile-links a {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  place-items: center;
  border: 1px solid rgba(21, 21, 21, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.84);
  color: var(--ink);
  font-size: 0.74rem;
  font-weight: 800;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.profile-links a svg {
  width: 13px;
  height: 13px;
  opacity: 0.62;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: opacity 180ms ease, transform 180ms ease;
}

.profile-links a:hover {
  transform: translateY(-2px);
  border-color: rgba(0, 191, 255, 0.18);
  background:
    linear-gradient(135deg, rgba(0, 191, 255, 0.08), rgba(0, 191, 255, 0.06)),
    rgba(255, 255, 255, 0.86);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.profile-links a:hover svg {
  opacity: 1;
  transform: translate(1px, -1px);
}

.about-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
  min-width: 0;
  padding: clamp(12px, 2vw, 24px);
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

.about-copy p:not(.section-kicker) {
  max-width: 760px;
}

.faq-list {
  display: grid;
  gap: 10px;
}

.faq-list details {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.68);
  border-radius: 26px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0.46)),
    rgba(255, 255, 255, 0.56);
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.04), inset 0 1px 0 rgba(255, 255, 255, 0.88);
  -webkit-backdrop-filter: blur(22px) saturate(150%);
  backdrop-filter: blur(22px) saturate(150%);
  transition: background 200ms ease, box-shadow 200ms ease;
}

.faq-list details[open] {
  box-shadow: 0 22px 54px rgba(15, 23, 42, 0.075), inset 0 1px 0 rgba(255, 255, 255, 0.94);
}

.faq-list summary {
  position: relative;
  display: flex;
  min-height: 66px;
  align-items: center;
  padding: 18px 58px 18px 20px;
  cursor: pointer;
  font-weight: 700;
  list-style: none;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  content: "+";
  position: absolute;
  right: 20px;
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 999px;
  color: var(--red);
  background: var(--red-soft);
  font-size: 1.35rem;
  font-weight: 500;
}

.faq-list details[open] summary::after {
  content: "-";
}

.faq-list details p {
  max-width: 860px;
  padding: 0 20px 22px;
  animation: faqOpen 240ms ease;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 620ms ease, transform 620ms ease;
}

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

.reveal-child {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 520ms ease, transform 520ms ease;
}

.reveal.is-visible .reveal-child {
  opacity: 1;
  transform: translateY(0);
}

.reveal.is-visible .reveal-child:nth-child(2) {
  transition-delay: 70ms;
}

.reveal.is-visible .reveal-child:nth-child(3) {
  transition-delay: 140ms;
}

.reveal.is-visible .reveal-child:nth-child(4) {
  transition-delay: 210ms;
}

.reveal.is-visible .reveal-child:nth-child(5) {
  transition-delay: 280ms;
}

.reveal.is-visible .reveal-child:nth-child(6) {
  transition-delay: 350ms;
}

@keyframes panelFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

/* Scorecard final tiny override */
.scorecard-status {
  position: absolute !important;
  left: var(--score-pad) !important;
  right: var(--score-pad) !important;
  bottom: calc(var(--score-actions-height) + 8px) !important;
  z-index: 45 !important;
  display: flex !important;
  min-height: 30px;
  align-items: center;
  justify-content: center;
  margin: 0 !important;
  padding: 0 12px;
  border: 1px solid rgba(0, 191, 255, 0.22);
  border-radius: 999px;
  color: var(--red) !important;
  background: #ffffff !important;
  font-size: 0.72rem !important;
  font-weight: 850;
  line-height: 1;
  text-align: center;
  text-transform: uppercase;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

.scorecard-status:empty {
  display: none !important;
}

body.dark-mode .scorecard-status {
  border-color: rgba(56, 189, 248, 0.28);
  background: #0b0d10 !important;
}

.score-step.has-validation-error {
  animation: scoreStepNudge 220ms ease-out 0s 2;
}

@keyframes scoreStepNudge {
  0%, 100% { transform: translateX(0); }
  35% { transform: translateX(-4px); }
  70% { transform: translateX(4px); }
}

.scorecard-modal.is-loading .scorecard-dialog::after {
  animation: scorecardBorderPulse 1.35s linear infinite !important;
}

@keyframes scorecardBorderPulse {
  0% { --cta-angle: 0deg; }
  26% { --cta-angle: 360deg; }
  100% { --cta-angle: 360deg; }
}

.scorecard-modal.is-finishing .scorecard-dialog {
  animation: scorecardModalSendAway 480ms cubic-bezier(0.5, 0, 0.15, 1) forwards !important;
  transform-origin: 50% 50%;
}

@keyframes scorecardModalSendAway {
  0% {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
    filter: blur(0);
  }
  100% {
    opacity: 0;
    transform: translate3d(0, -10px, 0) scale(0);
    filter: blur(4px);
  }
}

/* Scorecard tiny refinement: validation, fast border pulse, reverse-pop finish */
.scorecard-status {
  position: absolute !important;
  left: var(--score-pad) !important;
  right: var(--score-pad) !important;
  bottom: calc(var(--score-actions-height) + 8px) !important;
  z-index: 45 !important;
  display: flex !important;
  min-height: 30px;
  align-items: center;
  justify-content: center;
  margin: 0 !important;
  padding: 0 12px;
  border: 1px solid rgba(0, 191, 255, 0.22);
  border-radius: 999px;
  color: var(--red) !important;
  background: #ffffff !important;
  font-size: 0.72rem !important;
  font-weight: 850;
  line-height: 1;
  text-align: center;
  text-transform: uppercase;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

.scorecard-status:empty {
  display: none !important;
}

body.dark-mode .scorecard-status {
  border-color: rgba(56, 189, 248, 0.28);
  background: #0b0d10 !important;
}

.score-step.has-validation-error {
  animation: scoreStepNudge 220ms ease-out 0s 2;
}

@keyframes scoreStepNudge {
  0%, 100% { transform: translateX(0); }
  35% { transform: translateX(-4px); }
  70% { transform: translateX(4px); }
}

.scorecard-modal.is-loading .scorecard-dialog::after {
  animation: scorecardBorderPulse 1.35s linear infinite !important;
}

@keyframes scorecardBorderPulse {
  0% { --cta-angle: 0deg; }
  26% { --cta-angle: 360deg; }
  100% { --cta-angle: 360deg; }
}

.scorecard-modal.is-finishing .scorecard-dialog {
  animation: scorecardModalSendAway 480ms cubic-bezier(0.5, 0, 0.15, 1) forwards !important;
  transform-origin: 50% 50%;
}

@keyframes scorecardModalSendAway {
  0% {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
    filter: blur(0);
  }
  100% {
    opacity: 0;
    transform: translate3d(0, -10px, 0) scale(0);
    filter: blur(4px);
  }
}

/* Scorecard final override: solid body, clean progress, modal-only send finish */
.scorecard-form {
  margin: 0 calc(var(--score-pad) * -1) !important;
  padding: 0 var(--score-pad) !important;
  background: #ffffff !important;
}

body.dark-mode .scorecard-form {
  background: #0b0d10 !important;
}

.scorecard-progress {
  padding-top: 2px !important;
}

.scorecard-progress::before,
.scorecard-progress span.is-active::after {
  content: none !important;
  display: none !important;
}

.scorecard-progress span {
  cursor: pointer;
  user-select: none;
}

.scorecard-progress span:hover,
.scorecard-progress span:focus-visible {
  border-color: rgba(0, 191, 255, 0.34) !important;
  box-shadow: inset 0 0 0 1px rgba(0, 191, 255, 0.06), 0 8px 18px rgba(15, 23, 42, 0.055) !important;
  outline: none;
}

.scorecard-progress span.is-active,
body.dark-mode .scorecard-progress span.is-active {
  color: var(--red) !important;
  border-color: rgba(0, 191, 255, 0.54) !important;
  background: #ffffff !important;
  box-shadow: inset 0 0 0 1px rgba(0, 191, 255, 0.1), 0 8px 20px rgba(0, 191, 255, 0.08) !important;
}

body.dark-mode .scorecard-progress span.is-active {
  color: #7DD3FC !important;
  background: #0b0d10 !important;
  border-color: rgba(56, 189, 248, 0.58) !important;
  box-shadow: inset 0 0 0 1px rgba(56, 189, 248, 0.12), 0 8px 20px rgba(56, 189, 248, 0.1) !important;
}

.scorecard-progress span.is-complete,
body.dark-mode .scorecard-progress span.is-complete {
  background: #ffffff !important;
  box-shadow: none !important;
}

body.dark-mode .scorecard-progress span.is-complete {
  background: #0b0d10 !important;
}

.scorecard-actions {
  margin: 0 calc(var(--score-pad) * -1) !important;
}

.score-step.is-active {
  border-radius: 0 !important;
}

.scorecard-form.has-step-scroll:not(.step-at-top)::before,
.scorecard-form.has-step-scroll:not(.step-at-bottom)::after {
  left: calc(var(--score-pad) * -1) !important;
  right: calc(var(--score-pad) * -1) !important;
}

.scorecard-form.is-loading {
  animation: none !important;
  transform: none !important;
  opacity: 1 !important;
  filter: none !important;
}

.scorecard-modal.is-loading .scorecard-dialog::after {
  background: conic-gradient(from var(--cta-angle, 0deg), transparent 0 48%, rgba(0, 191, 255, 0.16) 58%, rgba(0, 191, 255, 1) 70%, rgba(255, 255, 255, 1) 77%, rgba(56, 189, 248, 1) 84%, transparent 96% 100%) !important;
  animation: ctaBorderOrbit 500ms linear infinite !important;
}

.scorecard-modal.is-finishing .scorecard-dialog {
  animation: scorecardModalSendAway 720ms cubic-bezier(0.55, 0, 0.2, 1) forwards !important;
  will-change: transform, opacity, filter;
}

@keyframes scorecardModalSendAway {
  0% {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
    filter: blur(0);
  }
  40% {
    opacity: 0.96;
    transform: translate3d(10px, -12px, 0) scale(0.985);
    filter: blur(0);
  }
  100% {
    opacity: 0;
    transform: translate3d(42vw, -34vh, 0) scale(0.62) rotate(2deg);
    filter: blur(8px);
  }
}

@media (max-width: 680px) {
  .scorecard-form {
    margin: 0 calc(var(--score-pad) * -1) !important;
    padding: 0 var(--score-pad) !important;
  }

  @keyframes scorecardModalSendAway {
    0% {
      opacity: 1;
      transform: translate3d(0, 0, 0) scale(1);
      filter: blur(0);
    }
    100% {
      opacity: 0;
      transform: translate3d(48vw, -30vh, 0) scale(0.68) rotate(2deg);
      filter: blur(7px);
    }
  }
}

@keyframes orbitSpin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes livePulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(227, 27, 35, 0);
  }
  50% {
    box-shadow: 0 0 0 7px rgba(227, 27, 35, 0.08);
  }
}

@keyframes avatarPulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.04);
  }
}

@keyframes softUpdate {
  0% {
    opacity: 0.35;
    transform: translateY(4px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes summaryScan {
  0%,
  100% {
    transform: scaleX(0.38);
  }
  50% {
    transform: scaleX(1);
  }
}

@keyframes calendarConfirm {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.08);
  }
}

@keyframes routePing {
  0% {
    opacity: 0.8;
    transform: scale(0.65);
  }
  100% {
    opacity: 0;
    transform: scale(1.45);
  }
}

@keyframes buttonSheen {
  0%,
  58% {
    left: -45%;
  }
  72%,
  100% {
    left: 120%;
  }
}

@keyframes stackPackBreathe {
  0%,
  100% {
    transform: rotateY(-9deg) rotateZ(0deg) translateY(0);
  }
  50% {
    transform: rotateY(10deg) rotateZ(1deg) translateY(-7px);
  }
  72% {
    transform: rotateY(2deg) rotateZ(-0.6deg) translateY(-3px);
  }
}

@keyframes packExplode {
  0%,
  100% {
    transform: translate(-50%, -50%) rotateX(62deg) rotateZ(-12deg) translate3d(0, var(--y), var(--z));
  }
  50% {
    transform: translate(-50%, -50%) rotateX(62deg) rotateZ(calc(-12deg + var(--r-open))) translate3d(var(--x-open), var(--y-open), var(--z-open));
  }
  74% {
    transform: translate(-50%, -50%) rotateX(62deg) rotateZ(-12deg) translate3d(0, calc(var(--y) * 0.98), var(--z));
  }
}

@keyframes scatterFieldFloat {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scaleX(1);
    opacity: 0.26;
  }

  50% {
    transform: translate3d(10px, -8px, 0) scaleX(1.16);
    opacity: 0.52;
  }
}

@keyframes glassScan {
  0%,
  100% {
    transform: translateX(-70%);
  }
  50% {
    transform: translateX(70%);
  }
}

@keyframes flowLine {
  0%,
  100% {
    opacity: 0.35;
    transform: scaleX(0.58);
  }
  50% {
    opacity: 1;
    transform: scaleX(1);
  }
}

@keyframes pillBreathe {
  0%,
  100% {
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.86), 0 0 0 rgba(0, 191, 255, 0);
  }
  50% {
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.94), 0 10px 26px rgba(0, 191, 255, 0.08);
  }
}

@keyframes pillSheen {
  0%,
  42% {
    transform: translateX(-120%);
  }
  62%,
  100% {
    transform: translateX(120%);
  }
}

@keyframes faqOpen {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.latest-section .section-grid {
  align-items: center;
}

.latest-section .section-intro {
  grid-column: span 4;
}

.latest-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: end;
  max-width: none;
  margin-bottom: 26px;
}

.text-link {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border: 1px solid rgba(21, 21, 21, 0.09);
  border-radius: 999px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.46);
  font-size: 0.82rem;
  font-weight: 900;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.text-link:hover {
  transform: translateY(-2px);
  border-color: rgba(0, 191, 255, 0.2);
  background: rgba(255, 255, 255, 0.72);
}

.recent-posts {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 0 clamp(24px, 4vw, 56px);
  border-top: 1px solid rgba(21, 21, 21, 0.09);
}

.recent-post {
  position: relative;
  display: grid;
  gap: 9px;
  padding: 22px 0;
  border-bottom: 1px solid rgba(21, 21, 21, 0.09);
  color: var(--ink);
  transition: transform 200ms ease, border-color 200ms ease;
}

.recent-post:hover {
  transform: translateX(4px);
  border-color: rgba(0, 191, 255, 0.22);
}

.recent-post span {
  color: var(--red);
  font-size: 0.7rem;
  font-weight: 900;
  text-transform: uppercase;
}

.recent-post strong {
  font-size: clamp(1.08rem, 1.55vw, 1.38rem);
  line-height: 1.14;
}

.recent-post p {
  display: -webkit-box;
  overflow: hidden;
  max-width: 620px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  font-size: 0.94rem;
  line-height: 1.58;
}

.recent-post em {
  color: var(--muted);
  font-size: 0.76rem;
  font-style: normal;
  font-weight: 900;
}

.recent-post-feature {
  grid-row: span 3;
  align-content: end;
  min-height: 320px;
  padding: clamp(28px, 4vw, 42px);
  overflow: hidden;
  border: 1px solid rgba(21, 21, 21, 0.08);
  border-radius: 34px;
  background:
    radial-gradient(circle at 18% 18%, rgba(0, 191, 255, 0.11), transparent 16rem),
    radial-gradient(circle at 82% 24%, rgba(0, 191, 255, 0.1), transparent 18rem),
    rgba(255, 255, 255, 0.5);
  box-shadow: 0 20px 56px rgba(15, 23, 42, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.78);
  -webkit-backdrop-filter: blur(22px) saturate(145%);
  backdrop-filter: blur(22px) saturate(145%);
}

.recent-post-feature::before,
.recent-post-feature::after {
  content: "";
  position: absolute;
  pointer-events: none;
  border: 1px solid rgba(21, 21, 21, 0.06);
  background: rgba(255, 255, 255, 0.18);
}

.recent-post-feature::before {
  top: 18%;
  right: 10%;
  width: 44%;
  height: 72px;
  border-radius: 24px;
  transform: rotate(-8deg);
}

.recent-post-feature::after {
  bottom: 18%;
  left: 9%;
  width: 34%;
  height: 58px;
  border-radius: 20px;
  transform: rotate(9deg);
}

.recent-post-feature > * {
  position: relative;
  z-index: 1;
}

.recent-post-feature strong {
  max-width: 660px;
  font-size: clamp(1.85rem, 3.2vw, 3.1rem);
  line-height: 1;
}

.recent-post-empty {
  grid-column: 1 / -1;
  padding: 28px 0;
  border-top: 1px solid rgba(21, 21, 21, 0.09);
  border-bottom: 1px solid rgba(21, 21, 21, 0.09);
}

body.dark-mode .text-link {
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
}

body.dark-mode .text-link:hover {
  background: rgba(255, 255, 255, 0.07);
}

body.dark-mode .recent-posts,
body.dark-mode .recent-post,
body.dark-mode .recent-post-empty {
  border-color: rgba(255, 255, 255, 0.08);
}

body.dark-mode .recent-post-feature {
  border-color: rgba(255, 255, 255, 0.07);
  background:
    radial-gradient(circle at 18% 18%, rgba(0, 191, 255, 0.14), transparent 16rem),
    radial-gradient(circle at 82% 24%, rgba(0, 191, 255, 0.12), transparent 18rem),
    rgba(255, 255, 255, 0.035);
  box-shadow: 0 22px 58px rgba(0, 0, 0, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

body.dark-mode .recent-post-feature::before,
body.dark-mode .recent-post-feature::after {
  border-color: rgba(255, 255, 255, 0.055);
  background: rgba(255, 255, 255, 0.035);
}

.final-cta {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  margin-bottom: 24px;
  padding: 88px 22px;
  border: 1px solid rgba(21, 21, 21, 0.09);
  border-radius: 42px;
  background: var(--glass);
  box-shadow: var(--glass-shadow);
  -webkit-backdrop-filter: blur(22px) saturate(145%);
  backdrop-filter: blur(22px) saturate(145%);
  text-align: center;
}

.final-cta h2,
.final-cta p {
  max-width: 800px;
}

.final-cta span {
  max-width: 720px;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

.site-footer {
  width: 100%;
  margin: clamp(40px, 6vw, 84px) 0 0;
  padding: clamp(28px, 5vw, 46px) 0 28px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  background:
    radial-gradient(circle at 88% 8%, rgba(0, 191, 255, 0.08), transparent 16rem),
    radial-gradient(circle at 8% 100%, rgba(0, 191, 255, 0.08), transparent 18rem),
    var(--glass);
  box-shadow: var(--glass-shadow);
  -webkit-backdrop-filter: blur(30px) saturate(150%);
  backdrop-filter: blur(30px) saturate(150%);
  font-size: 0.88rem;
  font-weight: 500;
}

.site-footer-inner {
  display: grid;
  grid-template-columns: minmax(260px, 1.25fr) repeat(3, minmax(130px, 0.6fr));
  gap: clamp(24px, 5vw, 62px);
  align-items: start;
  width: min(var(--max), calc(100% - 36px));
  margin: 0 auto;
}

.footer-brand-block {
  display: grid;
  gap: 18px;
  max-width: 430px;
}

.footer-brand-block p {
  font-size: 0.94rem;
  line-height: 1.7;
}

.footer-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.footer-socials a {
  display: inline-grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--muted);
  background: var(--glass);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.74);
  transition: transform 180ms ease, color 180ms ease, border-color 180ms ease, background 180ms ease;
}

.footer-socials a:hover {
  color: var(--ink);
  border-color: rgba(0, 191, 255, 0.2);
  background: rgba(255, 255, 255, 0.78);
  transform: translateY(-2px);
}

.footer-links {
  display: grid;
  gap: 10px;
}

.footer-links strong {
  color: var(--ink);
  font-size: 0.82rem;
}

.footer-links a {
  padding: 0;
  border: 0;
  border-radius: 0;
  color: var(--muted);
  background: transparent;
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.35;
}

.footer-links a:hover {
  color: var(--ink);
  border-color: rgba(0, 191, 255, 0.18);
}

.footer-bottom {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 14px;
  margin-top: clamp(28px, 5vw, 44px);
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 0.82rem;
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .nav-links {
    display: none;
  }

  .hero-copy,
  .section-intro,
  .ai-shape-stage,
  .ai-shape-copy,
  .audience-section .section-intro,
  .fit-summary,
  .audience-rail,
  .audience-grid,
  .about-panel,
  .about-profile,
  .about-copy,
  .latest-section .section-intro,
  .recent-posts {
    grid-column: 1 / -1;
  }

  .hero {
    min-height: auto;
    padding-top: 58px;
  }

  .about-panel {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .recent-posts {
    grid-template-columns: 1fr;
  }

  .about-copy {
    width: 100%;
  }

  .ai-shape-section {
    grid-template-columns: 1fr;
  }

  .fit-summary {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    min-height: 0;
  }

  .fit-summary-copy {
    grid-template-rows: auto auto auto;
  }
}

@media (max-width: 680px) {
  body::before {
    background-size: 42px 42px;
  }

  .site-header {
    top: 10px;
    width: calc(100% - 20px);
    min-height: 58px;
    margin-top: 10px;
    padding-left: 14px;
  }

  .brand span:last-child {
    max-width: 160px;
    white-space: normal;
    line-height: 1.12;
  }

  .header-cta {
    min-height: 42px;
    padding: 0 13px;
  }

  .section,
  .hero,
  .final-cta,
  .site-footer {
    width: min(100% - 28px, var(--max));
  }

  .section {
    padding: 68px 0;
  }

  .hero {
    padding-bottom: 72px;
  }

  h1 {
    font-size: clamp(2.7rem, 13vw, 4.6rem);
  }

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

  .ai-shape-stage {
    min-height: 360px;
  }

  .about-panel {
    padding: 28px 18px;
  }

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

  .latest-heading {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .recent-post-feature {
    min-height: 260px;
  }

  .recent-post strong {
    white-space: normal;
  }

  .site-footer {
    flex-direction: column;
  }

  .site-footer-inner {
    grid-template-columns: 1fr;
    width: min(100% - 28px, var(--max));
  }

  .footer-links {
    justify-content: flex-start;
  }

  .footer-bottom {
    flex-direction: column;
  }
}

/* Scorecard correction: solid body, cleaner clickable progress, whole-modal send finish */
.scorecard-form {
  margin: 0 calc(var(--score-pad) * -1) !important;
  padding: 0 var(--score-pad) !important;
  background: #ffffff !important;
}

body.dark-mode .scorecard-form {
  background: #0b0d10 !important;
}

.scorecard-progress {
  padding-top: 2px !important;
}

.scorecard-progress::before,
.scorecard-progress span.is-active::after {
  content: none !important;
  display: none !important;
}

.scorecard-progress span {
  cursor: pointer;
  user-select: none;
}

.scorecard-progress span:hover,
.scorecard-progress span:focus-visible {
  border-color: rgba(0, 191, 255, 0.34) !important;
  box-shadow: inset 0 0 0 1px rgba(0, 191, 255, 0.06), 0 8px 18px rgba(15, 23, 42, 0.055) !important;
  outline: none;
}

.scorecard-progress span.is-active,
body.dark-mode .scorecard-progress span.is-active {
  color: var(--red) !important;
  border-color: rgba(0, 191, 255, 0.54) !important;
  background: #ffffff !important;
  box-shadow: inset 0 0 0 1px rgba(0, 191, 255, 0.1), 0 8px 20px rgba(0, 191, 255, 0.08) !important;
}

body.dark-mode .scorecard-progress span.is-active {
  color: #7DD3FC !important;
  background: #0b0d10 !important;
  border-color: rgba(56, 189, 248, 0.58) !important;
  box-shadow: inset 0 0 0 1px rgba(56, 189, 248, 0.12), 0 8px 20px rgba(56, 189, 248, 0.1) !important;
}

.scorecard-progress span.is-complete,
body.dark-mode .scorecard-progress span.is-complete {
  background: #ffffff !important;
  box-shadow: none !important;
}

body.dark-mode .scorecard-progress span.is-complete {
  background: #0b0d10 !important;
}

.scorecard-actions {
  margin: 0 calc(var(--score-pad) * -1) !important;
}

.score-step.is-active {
  border-radius: 0 !important;
}

.scorecard-form.has-step-scroll:not(.step-at-top)::before,
.scorecard-form.has-step-scroll:not(.step-at-bottom)::after {
  left: calc(var(--score-pad) * -1) !important;
  right: calc(var(--score-pad) * -1) !important;
}

.scorecard-form.is-loading {
  animation: none !important;
  transform: none !important;
  opacity: 1 !important;
  filter: none !important;
}

.scorecard-modal.is-loading .scorecard-dialog::after {
  background: conic-gradient(from var(--cta-angle, 0deg), transparent 0 48%, rgba(0, 191, 255, 0.16) 58%, rgba(0, 191, 255, 1) 70%, rgba(255, 255, 255, 1) 77%, rgba(56, 189, 248, 1) 84%, transparent 96% 100%) !important;
  animation: ctaBorderOrbit 500ms linear infinite !important;
}

.scorecard-modal.is-finishing .scorecard-dialog {
  animation: scorecardModalSendAway 720ms cubic-bezier(0.55, 0, 0.2, 1) forwards !important;
  will-change: transform, opacity, filter;
}

@keyframes scorecardModalSendAway {
  0% {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
    filter: blur(0);
  }
  40% {
    opacity: 0.96;
    transform: translate3d(10px, -12px, 0) scale(0.985);
    filter: blur(0);
  }
  100% {
    opacity: 0;
    transform: translate3d(42vw, -34vh, 0) scale(0.62) rotate(2deg);
    filter: blur(8px);
  }
}

@media (max-width: 680px) {
  .scorecard-form {
    margin: 0 calc(var(--score-pad) * -1) !important;
    padding: 0 var(--score-pad) !important;
  }

  @keyframes scorecardModalSendAway {
    0% {
      opacity: 1;
      transform: translate3d(0, 0, 0) scale(1);
      filter: blur(0);
    }
    100% {
      opacity: 0;
      transform: translate3d(48vw, -30vh, 0) scale(0.68) rotate(2deg);
      filter: blur(7px);
    }
  }
}

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

  .reveal,
  .reveal-child {
    opacity: 1;
    transform: none;
  }
}

.post-feature-image {
  margin: 0 0 clamp(46px, 7vw, 86px);
}

.post-feature-image img {
  display: block;
  width: 100%;
  max-height: 620px;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 38px;
  box-shadow: var(--glass-shadow);
}

.post-feature-image figcaption {
  margin-top: 12px;
  color: var(--faint);
  font-size: 0.82rem;
  text-align: center;
}

.gh-content > .kg-card,
.gh-content > figure,
.gh-content > pre {
  margin-top: 36px;
  margin-bottom: 36px;
}

.gh-content .kg-image-card img,
.gh-content .kg-gallery-image img {
  border-radius: 28px;
}

.kg-width-wide {
  width: min(100vw - 32px, 980px);
  max-width: none;
  margin-left: 50%;
  transform: translateX(-50%);
}

.kg-width-full {
  width: 100vw;
  max-width: none;
  margin-left: 50%;
  transform: translateX(-50%);
}

.kg-width-full img,
.kg-width-wide img {
  width: 100%;
}

.kg-width-full img {
  border-radius: 0;
}

.gh-portal-triggerbtn-wrapper,
.gh-portal-triggerbtn-iframe,
iframe[title="portal-trigger"],
[data-testid="portal-trigger"] {
  display: none !important;
}

.gh-content .kg-callout-card {
  border-radius: 24px;
}

.gh-content pre,
.gh-content .kg-code-card pre {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 28px;
  background:
    linear-gradient(135deg, rgba(17, 17, 17, 0.96), rgba(17, 17, 17, 0.88)),
    #111;
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.14);
}

.gh-content pre code,
.gh-content .kg-code-card pre code {
  display: block;
  padding: 22px;
  color: #f7f7f8;
  font-size: 0.9rem;
  line-height: 1.75;
}

.blog-shell {
  padding-top: clamp(30px, 4vw, 54px);
}

.blog-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 360px);
  gap: clamp(28px, 5vw, 72px);
  align-items: end;
  padding: clamp(28px, 5vw, 58px) 0 clamp(34px, 5vw, 68px);
}

.blog-search,
.blog-archive-head button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid rgba(21, 21, 21, 0.09);
  border-radius: 999px;
  color: var(--ink);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.44)),
    rgba(255, 255, 255, 0.58);
  box-shadow: var(--glass-shadow);
  -webkit-backdrop-filter: blur(22px) saturate(145%);
  backdrop-filter: blur(22px) saturate(145%);
  font: inherit;
  font-size: 0.92rem;
  font-weight: 900;
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.blog-search {
  justify-self: end;
  width: 100%;
}

.blog-search:hover,
.blog-archive-head button:hover {
  transform: translateY(-2px);
  border-color: rgba(0, 191, 255, 0.22);
}

.blog-featured {
  margin-bottom: clamp(36px, 6vw, 72px);
}

.featured-article a {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.72fr);
  min-height: clamp(360px, 46vw, 560px);
  overflow: hidden;
  border: 1px solid rgba(21, 21, 21, 0.08);
  border-radius: 40px;
  background:
    radial-gradient(circle at 18% 18%, rgba(0, 191, 255, 0.1), transparent 15rem),
    radial-gradient(circle at 74% 20%, rgba(0, 191, 255, 0.1), transparent 18rem),
    rgba(255, 255, 255, 0.52);
  box-shadow: var(--glass-shadow);
  -webkit-backdrop-filter: blur(26px) saturate(150%);
  backdrop-filter: blur(26px) saturate(150%);
}

.featured-article-media {
  min-height: 320px;
  background:
    radial-gradient(circle at 24% 22%, rgba(0, 191, 255, 0.16), transparent 10rem),
    radial-gradient(circle at 80% 32%, rgba(0, 191, 255, 0.14), transparent 12rem),
    rgba(255, 255, 255, 0.38);
}

.featured-article-media img,
.featured-article-media .post-card-placeholder {
  width: 100%;
  height: 100%;
  min-height: 320px;
  border-radius: 0;
  object-fit: cover;
}

.featured-article-copy {
  display: grid;
  align-content: end;
  gap: 18px;
  padding: clamp(28px, 5vw, 54px);
}

.featured-article-copy h2 {
  font-size: clamp(2rem, 3.6vw, 3.8rem);
  line-height: 0.98;
}

.featured-article-copy p {
  max-width: 620px;
}

.blog-archive-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}

.blog-archive-head h2 {
  font-size: clamp(1.8rem, 2.6vw, 2.7rem);
}

.blog-archive-head button {
  min-height: 42px;
  padding: 0 14px;
  box-shadow: none;
}

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

.post-card a {
  display: grid;
  gap: 18px;
  height: 100%;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 30px;
  background: var(--glass);
  box-shadow: var(--glass-shadow);
  -webkit-backdrop-filter: blur(24px) saturate(145%);
  backdrop-filter: blur(24px) saturate(145%);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.post-card a:hover {
  transform: translateY(-3px);
  border-color: rgba(0, 191, 255, 0.18);
}

.post-card img,
.post-card-placeholder {
  width: 100%;
  aspect-ratio: 1.45;
  border-radius: 22px;
  object-fit: cover;
}

.post-card-placeholder {
  background:
    radial-gradient(circle at 24% 22%, rgba(0, 191, 255, 0.16), transparent 10rem),
    radial-gradient(circle at 80% 32%, rgba(0, 191, 255, 0.14), transparent 12rem),
    rgba(255, 255, 255, 0.48);
}

.post-card h2 {
  margin: 0;
  font-size: clamp(1.25rem, 1.9vw, 1.8rem);
}

.post-card p {
  margin-top: 10px;
  font-size: 0.94rem;
  line-height: 1.65;
}

.pagination {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-top: 44px;
  color: var(--muted);
  font-weight: 800;
}

body.dark-mode .blog-search,
body.dark-mode .blog-archive-head button,
body.dark-mode .featured-article a,
body.dark-mode .post-card a {
  border-color: rgba(255, 255, 255, 0.07);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.052), rgba(255, 255, 255, 0.02)),
    rgba(13, 15, 19, 0.52);
  box-shadow: 0 18px 54px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

body.dark-mode .featured-article-media,
body.dark-mode .post-card-placeholder {
  background:
    radial-gradient(circle at 24% 22%, rgba(0, 191, 255, 0.13), transparent 10rem),
    radial-gradient(circle at 80% 32%, rgba(0, 191, 255, 0.12), transparent 12rem),
    rgba(255, 255, 255, 0.035);
}

body.dark-mode .post-card a:hover,
body.dark-mode .blog-search:hover,
body.dark-mode .blog-archive-head button:hover {
  border-color: rgba(0, 191, 255, 0.22);
  background:
    linear-gradient(135deg, rgba(0, 191, 255, 0.07), rgba(0, 191, 255, 0.035)),
    rgba(13, 15, 19, 0.62);
}

@media (max-width: 980px) {
  .blog-hero,
  .featured-article a {
    grid-template-columns: 1fr;
  }

  .blog-search {
    justify-self: stretch;
  }

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

@media (max-width: 680px) {
  .blog-archive-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .post-feed {
    grid-template-columns: 1fr;
  }
}

.blog-shell {
  padding-top: clamp(18px, 3vw, 34px);
}

.blog-shell .post-title {
  max-width: 820px;
  font-size: clamp(2.45rem, 5vw, 5rem);
}

.blog-hero {
  grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
  gap: clamp(24px, 4vw, 54px);
  align-items: center;
  padding: clamp(22px, 4vw, 42px) 0 clamp(20px, 4vw, 42px);
}

.blog-command {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid rgba(21, 21, 21, 0.08);
  border-radius: 28px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.68), rgba(255, 255, 255, 0.38)),
    rgba(255, 255, 255, 0.5);
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.055), inset 0 1px 0 rgba(255, 255, 255, 0.82);
  -webkit-backdrop-filter: blur(24px) saturate(145%);
  backdrop-filter: blur(24px) saturate(145%);
}

.blog-command p {
  font-size: 0.84rem;
  line-height: 1.5;
}

.blog-search {
  min-height: 48px;
}

.blog-topics {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: clamp(24px, 4vw, 44px);
  padding: 12px 0;
  border-top: 1px solid rgba(21, 21, 21, 0.08);
  border-bottom: 1px solid rgba(21, 21, 21, 0.08);
}

.blog-topics span {
  margin-right: 6px;
  color: var(--red);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.blog-topics a,
.blog-topics button,
.blog-side-tags a {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  justify-content: center;
  padding: 0 11px;
  border: 1px solid rgba(21, 21, 21, 0.08);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.42);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 800;
  cursor: pointer;
}

.blog-topics a:hover,
.blog-topics button:hover,
.blog-side-tags a:hover {
  color: var(--ink);
  border-color: rgba(0, 191, 255, 0.2);
}

.blog-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
}

.blog-main {
  min-width: 0;
}

.blog-list {
  display: grid;
  border-top: 1px solid rgba(21, 21, 21, 0.09);
}

.blog-list-item a {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 34px;
  gap: 18px;
  align-items: center;
  min-height: 138px;
  padding: 22px 0;
  border-bottom: 1px solid rgba(21, 21, 21, 0.09);
  color: var(--ink);
  transition: transform 180ms ease, border-color 180ms ease;
}

.blog-list-item a:hover {
  transform: translateX(4px);
  border-color: rgba(0, 191, 255, 0.2);
}

.blog-list-number {
  display: inline-flex;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(21, 21, 21, 0.08);
  border-radius: 999px;
  color: var(--red);
  font-size: 0.76rem;
  font-weight: 900;
}

.blog-list-copy {
  min-width: 0;
}

.blog-list-copy .post-meta {
  margin-bottom: 10px;
}

.blog-list-copy h2 {
  max-width: 860px;
  font-size: clamp(1.25rem, 2vw, 2rem);
  line-height: 1.08;
}

.blog-list-copy p {
  display: -webkit-box;
  overflow: hidden;
  max-width: 760px;
  margin-top: 9px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  font-size: 0.94rem;
  line-height: 1.58;
}

.blog-list-item i {
  color: var(--muted);
  font-size: 0.9rem;
  transition: transform 180ms ease, color 180ms ease;
}

.blog-list-item a:hover i {
  color: var(--red);
  transform: translateX(3px);
}

.blog-aside {
  position: sticky;
  top: 112px;
  display: grid;
  gap: 12px;
}

.blog-side-card {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.64), rgba(255, 255, 255, 0.34)),
    rgba(255, 255, 255, 0.46);
}

.blog-side-card p {
  font-size: 0.86rem;
  line-height: 1.55;
}

.blog-side-card button {
  width: 100%;
  min-height: 40px;
  margin-top: 10px;
  border: 1px solid rgba(21, 21, 21, 0.08);
  border-radius: 999px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.52);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 900;
  cursor: pointer;
}

.blog-side-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

body.dark-mode .blog-command,
body.dark-mode .blog-side-card {
  border-color: rgba(255, 255, 255, 0.07);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.052), rgba(255, 255, 255, 0.02)),
    rgba(13, 15, 19, 0.52);
  box-shadow: 0 18px 54px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

body.dark-mode .blog-topics,
body.dark-mode .blog-list,
body.dark-mode .blog-list-item a {
  border-color: rgba(255, 255, 255, 0.08);
}

body.dark-mode .blog-topics a,
body.dark-mode .blog-topics button,
body.dark-mode .blog-side-tags a,
body.dark-mode .blog-side-card button,
body.dark-mode .blog-list-number {
  border-color: rgba(255, 255, 255, 0.075);
  background: rgba(255, 255, 255, 0.045);
}

@media (max-width: 980px) {
  .blog-layout {
    grid-template-columns: 1fr;
  }

  .blog-aside {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .blog-list-item a {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .blog-list-number {
    width: auto;
    justify-self: start;
    padding: 0 12px;
  }

  .blog-aside {
    grid-template-columns: 1fr;
  }
}


/* Ghost post template */
.post-shell {
        width: min(100% - 32px, var(--max));
        margin: 0 auto;
        padding: clamp(24px, 4vw, 52px) 0 96px;
      }

      .post-hero {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
        gap: clamp(28px, 5vw, 72px);
        align-items: end;
        padding: clamp(28px, 5vw, 58px) 0 clamp(34px, 5vw, 68px);
      }

      .post-meta {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
        margin-bottom: 22px;
      }

      .post-meta span {
        display: inline-flex;
        align-items: center;
        min-height: 34px;
        padding: 0 13px;
        border: 1px solid var(--line);
        border-radius: 999px;
        color: var(--muted);
        background: var(--glass);
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
        -webkit-backdrop-filter: blur(18px) saturate(145%);
        backdrop-filter: blur(18px) saturate(145%);
        font-size: 0.78rem;
        font-weight: 800;
      }

      .post-title {
        max-width: 980px;
        font-size: clamp(2.35rem, 5vw, 4.75rem);
        font-weight: 500;
        line-height: 1;
      }

      .post-excerpt {
        max-width: 760px;
        margin-top: 26px;
        font-size: clamp(1.08rem, 1.5vw, 1.28rem);
        line-height: 1.7;
      }

      .author-card {
        display: grid;
        gap: 18px;
        padding: 22px;
        border: 1px solid var(--line);
        border-radius: 30px;
        background:
          radial-gradient(circle at 82% 12%, rgba(0, 191, 255, 0.08), transparent 9rem),
          linear-gradient(135deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.42)),
          var(--glass);
        box-shadow: var(--glass-shadow);
        -webkit-backdrop-filter: blur(28px) saturate(150%);
        backdrop-filter: blur(28px) saturate(150%);
      }

      .author-card img {
        width: 76px;
        height: 76px;
        object-fit: cover;
        border: 1px solid var(--line);
        border-radius: 22px;
      }

      .author-card strong {
        display: block;
        margin-bottom: 4px;
        font-size: 1rem;
      }

      .author-card p {
        font-size: 0.9rem;
        line-height: 1.6;
      }

      .author-socials,
      .share-actions {
        display: flex;
        flex-wrap: wrap;
        gap: 9px;
      }

      .author-socials a,
      .share-actions a {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 7px;
        min-height: 34px;
        padding: 0 12px;
        border: 1px solid var(--line);
        border-radius: 999px;
        color: var(--muted);
        background: rgba(255, 255, 255, 0.52);
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.74);
        font-size: 0.76rem;
        font-weight: 800;
        transition: transform 180ms ease, color 180ms ease, border-color 180ms ease, background 180ms ease;
      }

      .share-actions a {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 38px;
        height: 38px;
        min-height: 38px;
        padding: 0;
        border-radius: 14px;
      }

      .author-socials svg,
      .share-actions svg {
        width: 15px;
        height: 15px;
        stroke: currentColor;
        stroke-width: 2;
        fill: none;
        flex: 0 0 auto;
      }

      .author-socials svg {
        width: 14px;
        height: 14px;
      }

      .author-socials i,
      .share-actions i {
        font-size: 0.86rem;
        line-height: 1;
      }

      .share-actions i {
        display: block;
        width: 1em;
        text-align: center;
      }

      .author-socials a:hover,
      .share-actions a:hover {
        color: var(--ink);
        border-color: rgba(0, 191, 255, 0.2);
        background: rgba(255, 255, 255, 0.78);
        transform: translateY(-2px);
      }

      .featured-placeholder {
        position: relative;
        min-height: clamp(280px, 42vw, 520px);
        margin-bottom: clamp(46px, 7vw, 86px);
        overflow: hidden;
        border: 1px solid var(--line);
        border-radius: 38px;
        background:
          radial-gradient(circle at 26% 24%, rgba(0, 191, 255, 0.18), transparent 15rem),
          radial-gradient(circle at 74% 30%, rgba(0, 191, 255, 0.16), transparent 18rem),
          linear-gradient(135deg, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.44)),
          var(--glass);
        box-shadow: var(--glass-shadow);
        -webkit-backdrop-filter: blur(30px) saturate(150%);
        backdrop-filter: blur(30px) saturate(150%);
      }

      .featured-placeholder::before,
      .featured-placeholder::after {
        content: "";
        position: absolute;
        border: 1px solid rgba(21, 21, 21, 0.07);
        background:
          linear-gradient(135deg, rgba(255, 255, 255, 0.58), rgba(255, 255, 255, 0.16)),
          rgba(255, 255, 255, 0.28);
        box-shadow: 0 22px 70px rgba(15, 23, 42, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.64);
      }

      .featured-placeholder::before {
        width: 54%;
        height: 90px;
        right: 8%;
        top: 24%;
        border-radius: 28px;
        transform: rotate(-8deg);
      }

      .featured-placeholder::after {
        width: 42%;
        height: 78px;
        left: 10%;
        bottom: 22%;
        border-radius: 24px;
        transform: rotate(10deg);
      }

      .featured-caption {
        position: absolute;
        left: clamp(22px, 4vw, 46px);
        bottom: clamp(22px, 4vw, 42px);
        display: grid;
        gap: 10px;
        max-width: 440px;
        z-index: 1;
      }

      .featured-caption span {
        width: max-content;
        padding: 8px 12px;
        border-radius: 999px;
        color: var(--red);
        background: rgba(0, 191, 255, 0.08);
        font-size: 0.76rem;
        font-weight: 900;
        text-transform: uppercase;
      }

      .featured-caption strong {
        color: var(--ink);
        font-size: clamp(1.5rem, 3vw, 2.7rem);
        font-weight: 600;
        line-height: 1.02;
      }

      .post-layout {
        display: grid;
        grid-template-columns: minmax(0, 760px) minmax(220px, 1fr);
        gap: clamp(34px, 5vw, 84px);
        align-items: start;
      }

      .post-content {
        min-width: 0;
      }

      .post-content > * + * {
        margin-top: 24px;
      }

      .post-content h2 {
        max-width: 760px;
        margin-top: 58px;
        scroll-margin-top: 132px;
        font-size: clamp(2rem, 3vw, 3.25rem);
        font-weight: 600;
        line-height: 1.05;
      }

      .post-content h3 {
        margin-top: 42px;
        scroll-margin-top: 132px;
        font-size: 1.42rem;
      }

      .post-content p,
      .post-content li {
        color: var(--muted);
        font-size: 1.08rem;
        line-height: 1.82;
      }

      .post-content ul,
      .post-content ol {
        padding-left: 1.4rem;
      }

      .post-content blockquote {
        margin: 40px 0;
        padding: 28px;
        border: 1px solid rgba(0, 191, 255, 0.16);
        border-radius: 28px;
        background:
          radial-gradient(circle at 100% 0%, rgba(0, 191, 255, 0.11), transparent 16rem),
          var(--glass);
        box-shadow: var(--glass-shadow);
      }

      .post-content blockquote p {
        color: var(--ink);
        font-size: 1.22rem;
        font-weight: 600;
        line-height: 1.55;
      }

      .code-card {
        overflow: hidden;
        margin: 36px 0;
        border: 1px solid var(--line);
        border-radius: 28px;
        background:
          linear-gradient(135deg, rgba(17, 17, 17, 0.96), rgba(17, 17, 17, 0.88)),
          #111;
        box-shadow: 0 24px 70px rgba(15, 23, 42, 0.14);
      }

      .code-card-header {
        display: flex;
        justify-content: space-between;
        gap: 18px;
        padding: 15px 18px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        color: rgba(255, 255, 255, 0.68);
        font-size: 0.76rem;
        font-weight: 800;
        text-transform: uppercase;
      }

      pre {
        margin: 0;
        padding: 22px;
        overflow-x: auto;
      }

      code {
        font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
      }

      pre code {
        display: block;
        color: #f7f7f8;
        font-size: 0.9rem;
        line-height: 1.75;
      }

      .post-side {
        position: sticky;
        top: 112px;
        display: grid;
        gap: 12px;
      }

      .side-card {
        padding: 16px;
        border: 1px solid var(--line);
        border-radius: 22px;
        background: var(--glass);
        box-shadow: var(--glass-shadow);
        -webkit-backdrop-filter: blur(24px) saturate(145%);
        backdrop-filter: blur(24px) saturate(145%);
      }

      .side-card strong {
        display: block;
        margin-bottom: 9px;
        font-size: 0.88rem;
      }

      .side-card a,
      .side-card span {
        display: block;
        padding: 7px 0;
        color: var(--muted);
        font-size: 0.8rem;
        font-weight: 700;
        line-height: 1.35;
      }

      .toc-list {
        display: grid;
        gap: 2px;
        max-height: min(420px, calc(100vh - 250px));
        margin-right: -6px;
        padding-right: 6px;
        overflow-y: auto;
        overscroll-behavior: contain;
        scrollbar-width: thin;
      }

      .side-card .toc-list a {
        padding: 8px 0;
        color: var(--muted);
        border: 0;
        background: transparent;
      }

      .side-card .toc-list a:hover {
        color: var(--ink);
      }

      .side-card .toc-list a.is-active {
        color: var(--ink);
      }

      .side-card .toc-list a.is-active::before {
        content: "";
        display: inline-block;
        width: 6px;
        height: 6px;
        margin-right: 7px;
        border-radius: 999px;
        background: var(--red);
        vertical-align: middle;
      }

      .side-card .toc-list a.is-subsection {
        padding-left: 12px;
        font-size: 0.76rem;
        opacity: 0.82;
      }

      .side-card .share-actions a {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 38px;
        height: 38px;
        min-height: 38px;
        padding: 0;
        line-height: 1;
      }

      .post-cta {
        margin-top: 64px;
        padding: clamp(28px, 5vw, 48px);
        border: 1px solid var(--line);
        border-radius: 34px;
        background:
          radial-gradient(circle at 90% 0%, rgba(0, 191, 255, 0.1), transparent 15rem),
          radial-gradient(circle at 0% 100%, rgba(0, 191, 255, 0.1), transparent 15rem),
          var(--glass);
        box-shadow: var(--glass-shadow);
        -webkit-backdrop-filter: blur(30px) saturate(150%);
        backdrop-filter: blur(30px) saturate(150%);
      }

      .post-cta .button {
        margin-top: 24px;
      }

      .post-cta .eyebrow {
        font-size: 0.76rem;
      }

      .post-cta h2 {
        max-width: 720px;
        margin-top: 0;
        font-size: clamp(1.7rem, 2.6vw, 2.7rem);
      }

      .comments-section {
        margin-top: 58px;
        padding-top: 22px;
        border-top: 1px solid var(--line);
        color-scheme: light;
      }

      .comments-section,
      .comments-section :where(p, span, strong, h1, h2, h3, h4, label) {
        color: var(--ink);
      }

      .comments-section :where(a, button, [role="button"]) {
        color: var(--ink);
      }

      .comments-section :where(button, [role="button"], input[type="submit"], a[class*="button"]) {
        border-color: rgba(21, 21, 21, 0.1);
        background: rgba(255, 255, 255, 0.78);
      }

      .ghost-comments-preview {
        display: grid;
        gap: 16px;
      }

      .ghost-comment-box,
      .ghost-comment {
        display: grid;
        gap: 12px;
        padding: 18px;
        border: 1px solid var(--line);
        border-radius: 22px;
        background: rgba(255, 255, 255, 0.42);
      }

      .ghost-comment-box span,
      .ghost-comment-line {
        display: block;
        height: 12px;
        border-radius: 999px;
        background: rgba(21, 21, 21, 0.1);
      }

      .ghost-comment-box span:first-child {
        width: 42%;
      }

      .ghost-comment-box span:nth-child(2) {
        width: 88%;
      }

      .ghost-comment-box span:nth-child(3) {
        width: 68%;
      }

      .ghost-comment-head {
        display: flex;
        align-items: center;
        gap: 10px;
      }

      .ghost-avatar {
        width: 34px;
        height: 34px;
        border-radius: 999px;
        background: linear-gradient(135deg, rgba(0, 191, 255, 0.22), rgba(0, 191, 255, 0.18));
      }

      .ghost-comment-head strong {
        font-size: 0.92rem;
      }

      .ghost-comment-line {
        width: 92%;
      }

      .ghost-comment-line.short {
        width: 58%;
      }

      .ghost-note {
        padding-top: 4px;
        color: var(--faint);
        font-size: 0.82rem;
        line-height: 1.55;
      }
      body.dark-mode .author-socials a,
      body.dark-mode .share-actions a,
      body.dark-mode .ghost-comment-box,
      body.dark-mode .ghost-comment {
        color: var(--muted);
        border-color: rgba(255, 255, 255, 0.075);
        background: rgba(255, 255, 255, 0.045);
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.045);
      }

      body.dark-mode .post-meta span {
        border-color: rgba(255, 255, 255, 0.055);
        background: rgba(255, 255, 255, 0.045);
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
      }

      body.dark-mode .author-card,
      body.dark-mode .side-card,
      body.dark-mode .post-cta {
        border-color: rgba(255, 255, 255, 0.06);
        background:
          linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02)),
          rgba(13, 15, 19, 0.58);
        box-shadow: 0 18px 54px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.05);
      }

      body.dark-mode .author-card img {
        border-color: rgba(255, 255, 255, 0.08);
      }

      body.dark-mode .comments-section {
        color-scheme: dark;
        border-color: rgba(255, 255, 255, 0.08);
      }

      body.dark-mode .comments-section,
      body.dark-mode .comments-section :where(p, span, strong, h1, h2, h3, h4, label) {
        color: rgba(247, 247, 248, 0.9);
      }

      body.dark-mode .comments-section :where(a, button, [role="button"]) {
        color: #ffffff;
      }

      body.dark-mode .comments-section :where(button, [role="button"], input[type="submit"], a[class*="button"]) {
        border-color: rgba(255, 255, 255, 0.12);
        background: rgba(255, 255, 255, 0.08);
      }

      body.dark-mode .comments-section :where(input, textarea) {
        color: #ffffff;
        border-color: rgba(255, 255, 255, 0.12);
        background: rgba(255, 255, 255, 0.06);
      }

      body.dark-mode .comments-section iframe {
        background: transparent;
      }

      body.dark-mode .featured-placeholder::before,
      body.dark-mode .featured-placeholder::after {
        border-color: rgba(255, 255, 255, 0.075);
        background:
          linear-gradient(135deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02)),
          rgba(255, 255, 255, 0.035);
      }

      body.dark-mode .ghost-comment-box span,
      body.dark-mode .ghost-comment-line {
        background: rgba(255, 255, 255, 0.12);
      }

      body.dark-mode .code-card {
        border-color: rgba(255, 255, 255, 0.075);
        background:
          linear-gradient(135deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.015)),
          #08090b;
      }

      @media (max-width: 980px) {
        .post-hero,
        .post-layout {
          grid-template-columns: 1fr;
        }

        .post-side {
          position: static;
          grid-template-columns: repeat(2, minmax(0, 1fr));
        }

      }

      @media (max-width: 680px) {
        .post-shell {
          width: min(100% - 28px, var(--max));
          padding-top: 42px;
        }

        .post-side {
          grid-template-columns: 1fr;
        }
      }

/* Final archive and post refinements */
.blog-shell .post-title {
  max-width: 900px;
  font-size: clamp(2.2rem, 4.2vw, 4.35rem);
}

.blog-hero {
  align-items: end;
}

.blog-command {
  align-self: stretch;
  align-content: center;
}

.blog-list {
  border-top: 0;
}

.blog-list-item a {
  min-height: 124px;
  padding: 20px 18px;
  border: 1px solid transparent;
  border-radius: 26px;
}

.blog-list-item + .blog-list-item {
  margin-top: 8px;
}

.blog-list-item a:hover {
  transform: translateX(0);
  border-color: rgba(0, 191, 255, 0.14);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.74), rgba(255, 255, 255, 0.42)),
    rgba(255, 255, 255, 0.48);
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.76);
}

.blog-list-copy h2 {
  font-size: clamp(1.25rem, 1.7vw, 1.72rem);
}

.blog-list-copy p {
  font-size: 0.9rem;
}

.recent-posts,
.recent-post,
.recent-post-empty {
  border: 0;
}

.recent-post {
  padding: 18px 0;
}

.post-back-link {
  display: inline-flex;
  width: max-content;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 18px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.52);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.74);
  -webkit-backdrop-filter: blur(16px) saturate(145%);
  backdrop-filter: blur(16px) saturate(145%);
  font-size: 0.8rem;
  font-weight: 800;
  transition: transform 180ms ease, color 180ms ease, border-color 180ms ease, background 180ms ease;
}

.post-back-link:hover {
  color: var(--ink);
  border-color: rgba(0, 191, 255, 0.18);
  background: rgba(255, 255, 255, 0.76);
  transform: translateX(-2px);
}

.post-hero .post-title {
  font-size: clamp(2.2rem, 4.4vw, 4.15rem);
}

.post-content h2,
.post-content h3,
.post-content h4 {
  scroll-margin-top: 148px;
}

.post-content hr,
.gh-content hr {
  width: 100%;
  height: 1px;
  margin: 46px 0;
  border: 0;
  background: linear-gradient(90deg, transparent, rgba(21, 21, 21, 0.16), transparent);
}

.post-content .kg-embed-card {
  width: 100%;
  margin: 38px 0;
}

.post-content .kg-embed-card iframe,
.post-content iframe[src*="youtube.com"],
.post-content iframe[src*="youtu.be"],
.post-content iframe[src*="youtube-nocookie.com"] {
  display: block;
  width: 100% !important;
  min-height: 420px;
  aspect-ratio: 16 / 9;
  height: auto !important;
  border: 0;
  border-radius: 28px;
  background: #111;
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.12);
}

.post-layout .post-content > .kg-width-wide,
.post-layout .post-content > .kg-width-full,
.post-layout .post-content .kg-width-wide,
.post-layout .post-content .kg-width-full {
  width: 100%;
  max-width: 100%;
  margin-left: 0;
  transform: none;
}

.post-content .kg-button-card,
.post-content .kg-callout-card,
.post-content .kg-signup-card,
.post-content .kg-product-card,
.post-content .kg-header-card,
.post-content .kg-bookmark-card,
.post-cta {
  max-width: 100%;
  box-sizing: border-box;
}

.post-content .kg-button-card,
.post-content .kg-signup-card,
.post-content .kg-product-card,
.post-content .kg-header-card {
  overflow: hidden;
  border-radius: 24px;
}

.comments-section {
  position: relative;
  overflow: hidden;
  border-radius: 26px;
}

.comments-section :where(.gh-comments, .ghost-comments, [class*="comment"], [class*="member"], [class*="signup"], [class*="signin"]) {
  max-width: 100%;
  box-sizing: border-box;
}

body.dark-mode .blog-list-item a:hover {
  border-color: rgba(255, 255, 255, 0.07);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.02)),
    rgba(13, 15, 19, 0.56);
  box-shadow: 0 18px 54px rgba(0, 0, 0, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

body.dark-mode .post-back-link {
  color: rgba(247, 247, 248, 0.76);
  border-color: rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.045);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.045);
}

body.dark-mode .post-back-link:hover {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.075);
}

body.dark-mode .post-content hr,
body.dark-mode .gh-content hr {
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
}

body.dark-mode .post-content .kg-embed-card iframe,
body.dark-mode .post-content iframe[src*="youtube.com"],
body.dark-mode .post-content iframe[src*="youtu.be"],
body.dark-mode .post-content iframe[src*="youtube-nocookie.com"] {
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
}

body.dark-mode .comments-section,
body.dark-mode .comments-section :where(.gh-comments, .ghost-comments, [class*="comment"], [class*="member"], [class*="signup"], [class*="signin"]) {
  color-scheme: dark;
  color: rgba(247, 247, 248, 0.9) !important;
  background: transparent !important;
}

body.dark-mode .comments-section :where(button, [role="button"], input[type="submit"], a[class*="button"], .gh-btn, [class*="Button"]) {
  color: #ffffff !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
  background: rgba(255, 255, 255, 0.08) !important;
}

body.dark-mode .comments-section :where(input, textarea, select) {
  color: #ffffff !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
  background: rgba(255, 255, 255, 0.06) !important;
}

body.dark-mode .comments-section iframe {
  color-scheme: dark;
  background: #090a0c !important;
}

@media (max-width: 980px) {
  .blog-command {
    align-self: auto;
  }

  .post-content .kg-embed-card iframe,
  .post-content iframe[src*="youtube.com"],
  .post-content iframe[src*="youtu.be"],
  .post-content iframe[src*="youtube-nocookie.com"] {
    min-height: 300px;
  }
}

@media (max-width: 680px) {
  .nav-search span {
    display: none;
  }

  .nav-search {
    width: 46px;
    padding: 0;
  }

  .post-content .kg-embed-card iframe,
  .post-content iframe[src*="youtube.com"],
  .post-content iframe[src*="youtu.be"],
  .post-content iframe[src*="youtube-nocookie.com"] {
    min-height: 210px;
    border-radius: 20px;
  }
}

/* Final blog rebuild and compact navigation */
.site-header {
  grid-template-columns: minmax(180px, 1fr) auto auto;
  gap: 10px;
  padding-right: 8px;
}

.header-actions {
  gap: 6px;
}

.language-switcher {
  gap: 0;
  padding: 2px;
}

.language-switcher a {
  min-width: 30px;
  min-height: 32px;
  font-size: 0.68rem;
}

.nav-search,
.theme-toggle {
  width: 42px;
  height: 42px;
  min-height: 42px;
  padding: 0;
  border-radius: 50%;
  flex: 0 0 42px;
}

.nav-search {
  gap: 0;
}

.nav-search span {
  display: none;
}

.header-cta {
  min-height: 42px;
  padding: 0 15px;
}

.blog-shell {
  padding-top: clamp(28px, 4vw, 56px);
}

.blog-hero {
  display: block;
  max-width: 980px;
  padding: clamp(28px, 5vw, 70px) 0 clamp(22px, 4vw, 44px);
}

.blog-shell .post-title {
  max-width: 980px;
  font-size: clamp(2.35rem, 5vw, 5.2rem);
  line-height: 0.96;
}

.blog-shell .post-excerpt {
  max-width: 760px;
  font-size: clamp(1.02rem, 1.35vw, 1.18rem);
}

.blog-topics {
  gap: 9px;
  margin-bottom: clamp(26px, 4vw, 52px);
  padding: 0;
  border: 0;
}

.blog-topics span:first-child {
  color: var(--faint);
}

.blog-topics a {
  min-height: 34px;
  border-color: rgba(21, 21, 21, 0.075);
  background: rgba(255, 255, 255, 0.5);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.blog-board {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
}

.blog-article {
  min-width: 0;
}

.blog-article a {
  position: relative;
  display: grid;
  min-height: 100%;
  overflow: hidden;
  border: 1px solid rgba(21, 21, 21, 0.085);
  border-radius: 30px;
  color: var(--ink);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.42)),
    rgba(255, 255, 255, 0.52);
  box-shadow: 0 20px 60px rgba(15, 23, 42, 0.055), inset 0 1px 0 rgba(255, 255, 255, 0.78);
  -webkit-backdrop-filter: blur(24px) saturate(145%);
  backdrop-filter: blur(24px) saturate(145%);
  transition: transform 200ms ease, border-color 200ms ease, box-shadow 200ms ease;
}

.blog-article a:hover {
  transform: translateY(-3px);
  border-color: rgba(0, 191, 255, 0.16);
  box-shadow: 0 28px 76px rgba(15, 23, 42, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.84);
}

.blog-article-media {
  position: relative;
  min-height: 145px;
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 18%, rgba(0, 191, 255, 0.14), transparent 12rem),
    radial-gradient(circle at 84% 28%, rgba(0, 191, 255, 0.12), transparent 13rem),
    rgba(21, 21, 21, 0.035);
}

.blog-article-media img {
  width: 100%;
  height: 100%;
  min-height: 145px;
  object-fit: cover;
  filter: saturate(0.96) contrast(1.02);
}

.blog-article-media span {
  position: absolute;
  left: 18px;
  bottom: 18px;
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  padding: 0 12px;
  border-radius: 999px;
  color: var(--red);
  background: rgba(255, 255, 255, 0.7);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.blog-article-copy {
  display: grid;
  gap: 12px;
  padding: 22px;
}

.blog-article-copy .post-meta {
  margin-bottom: 0;
}

.blog-article-copy h2 {
  font-size: clamp(1.2rem, 1.55vw, 1.58rem);
  line-height: 1.08;
}

.blog-article-copy p {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.58;
}

.blog-article > a > i {
  position: absolute;
  right: 20px;
  bottom: 20px;
  display: inline-grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid rgba(21, 21, 21, 0.08);
  border-radius: 50%;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.52);
  transition: transform 180ms ease, color 180ms ease, background 180ms ease;
}

.blog-article a:hover > i {
  color: #ffffff;
  background: var(--red);
  transform: translateX(2px);
}

.blog-article.is-featured {
  grid-column: span 2;
  grid-row: span 2;
}

.blog-article.is-featured a {
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  min-height: 430px;
}

.blog-article.is-featured .blog-article-media {
  min-height: 100%;
}

.blog-article.is-featured .blog-article-media img {
  min-height: 430px;
}

.blog-article.is-featured .blog-article-copy {
  align-content: end;
  padding: clamp(28px, 4vw, 42px);
}

.blog-article.is-featured .blog-article-copy h2 {
  font-size: clamp(1.85rem, 3vw, 3.2rem);
  letter-spacing: 0;
}

.blog-article.is-featured .blog-article-copy p {
  max-width: 520px;
  font-size: 1rem;
}

.recent-post {
  padding: 18px;
  border-radius: 24px;
}

.recent-post:hover {
  background: rgba(255, 255, 255, 0.44);
}

.recent-post-feature {
  padding: clamp(28px, 4vw, 42px);
}

.comments-section {
  padding: 24px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.48);
  box-shadow: var(--glass-shadow);
  -webkit-backdrop-filter: blur(24px) saturate(145%);
  backdrop-filter: blur(24px) saturate(145%);
}

body.dark-mode .blog-topics a {
  border-color: rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.045);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

body.dark-mode .blog-article a {
  border-color: rgba(255, 255, 255, 0.065);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.052), rgba(255, 255, 255, 0.02)),
    rgba(13, 15, 19, 0.58);
  box-shadow: 0 18px 54px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.048);
}

body.dark-mode .blog-article a:hover {
  border-color: rgba(255, 255, 255, 0.095);
  box-shadow: 0 28px 76px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

body.dark-mode .blog-article-media {
  background:
    radial-gradient(circle at 18% 18%, rgba(0, 191, 255, 0.16), transparent 12rem),
    radial-gradient(circle at 84% 28%, rgba(0, 191, 255, 0.13), transparent 13rem),
    rgba(255, 255, 255, 0.035);
}

body.dark-mode .blog-article-media span,
body.dark-mode .blog-article > a > i {
  color: rgba(247, 247, 248, 0.76);
  border-color: rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.055);
}

body.dark-mode .recent-post:hover {
  background: rgba(255, 255, 255, 0.045);
}

body.dark-mode .comments-section {
  border-color: rgba(255, 255, 255, 0.075);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.018)),
    rgba(8, 9, 11, 0.88) !important;
  box-shadow: 0 18px 54px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.045);
}

body.dark-mode .comments-section iframe {
  filter: invert(1) hue-rotate(180deg) saturate(0.9);
  opacity: 0.94;
  border-radius: 22px;
}

@media (max-width: 1160px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .nav-links {
    display: none;
  }

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

@media (max-width: 820px) {
  .blog-board,
  .blog-article.is-featured a {
    grid-template-columns: 1fr;
  }

  .blog-article.is-featured {
    grid-column: span 1;
  }

  .blog-article.is-featured a,
  .blog-article.is-featured .blog-article-media img {
    min-height: 0;
  }
}

@media (max-width: 680px) {
  .site-header {
    width: min(100% - 20px, var(--max));
  }

  .brand {
    min-width: 0;
  }

  .brand-text {
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .language-switcher {
    display: none;
  }

  .header-cta {
    display: none;
  }
}

/* Simplified archive and restored code sizing */
.site-header {
  grid-template-columns: minmax(180px, 1fr) auto auto;
}

.header-actions {
  gap: 8px;
}

.blog-shell {
  width: min(100% - 36px, 1080px);
}

.blog-shell .post-title {
  max-width: 880px;
  font-size: clamp(2.1rem, 4.4vw, 4.6rem);
}

.blog-shell .post-excerpt {
  max-width: 720px;
}

.blog-topics {
  margin-bottom: 28px;
}

.blog-simple-list {
  display: grid;
  gap: 10px;
  margin-top: 8px;
}

.blog-simple-item a {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 34px;
  gap: 18px;
  align-items: center;
  min-height: 118px;
  padding: 20px 22px;
  border: 1px solid rgba(21, 21, 21, 0.075);
  border-radius: 26px;
  color: var(--ink);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.68), rgba(255, 255, 255, 0.36)),
    rgba(255, 255, 255, 0.44);
  box-shadow: 0 16px 44px rgba(15, 23, 42, 0.045), inset 0 1px 0 rgba(255, 255, 255, 0.74);
  -webkit-backdrop-filter: blur(20px) saturate(145%);
  backdrop-filter: blur(20px) saturate(145%);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.blog-simple-item a:hover {
  transform: translateY(-2px);
  border-color: rgba(0, 191, 255, 0.16);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0.46)),
    rgba(255, 255, 255, 0.55);
  box-shadow: 0 22px 58px rgba(15, 23, 42, 0.065), inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

.blog-simple-number {
  display: inline-flex;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(21, 21, 21, 0.075);
  border-radius: 50%;
  color: var(--red);
  background: rgba(255, 255, 255, 0.42);
  font-size: 0.74rem;
  font-weight: 900;
}

.blog-simple-copy {
  min-width: 0;
}

.blog-simple-copy .post-meta {
  margin-bottom: 10px;
}

.blog-simple-copy h2 {
  max-width: 760px;
  font-size: clamp(1.16rem, 1.7vw, 1.6rem);
  line-height: 1.12;
}

.blog-simple-copy p {
  display: -webkit-box;
  overflow: hidden;
  max-width: 760px;
  margin-top: 8px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

.blog-simple-item i {
  color: var(--muted);
  font-size: 0.9rem;
  transition: transform 180ms ease, color 180ms ease;
}

.blog-simple-item a:hover i {
  color: var(--red);
  transform: translateX(3px);
}

.pagination {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 34px;
}

.pagination a,
.pagination span {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border: 1px solid rgba(21, 21, 21, 0.075);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.44);
  font-size: 0.82rem;
  font-weight: 800;
}

.pagination a:hover {
  color: var(--ink);
  border-color: rgba(0, 191, 255, 0.16);
}

.post-content .kg-code-card,
.post-content > pre,
.gh-content .kg-code-card,
.gh-content > pre {
  width: 100%;
  max-width: 100%;
  margin: 24px 0;
  transform: none;
}

.post-content .kg-code-card pre,
.gh-content .kg-code-card pre {
  margin: 0;
}

.post-content pre,
.gh-content pre,
.post-content .kg-code-card pre,
.gh-content .kg-code-card pre {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

body.dark-mode .blog-simple-item a {
  border-color: rgba(255, 255, 255, 0.065);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.052), rgba(255, 255, 255, 0.02)),
    rgba(13, 15, 19, 0.58);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.048);
}

body.dark-mode .blog-simple-item a:hover {
  border-color: rgba(255, 255, 255, 0.1);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.064), rgba(255, 255, 255, 0.028)),
    rgba(13, 15, 19, 0.66);
}

body.dark-mode .blog-simple-number,
body.dark-mode .pagination a,
body.dark-mode .pagination span {
  border-color: rgba(255, 255, 255, 0.065);
  background: rgba(255, 255, 255, 0.045);
}

body.dark-mode .pagination a:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.1);
}

@media (max-width: 680px) {
  .blog-simple-item a {
    grid-template-columns: 1fr 30px;
    gap: 12px;
    padding: 18px;
  }

  .blog-simple-number {
    grid-column: 1 / -1;
  }
}

/* Final archive corrections */
.site-header {
  grid-template-columns: 1fr auto 1fr;
  gap: 18px;
  width: min(var(--max), calc(100% - 32px));
}

.nav-links {
  justify-self: center;
}

.header-actions {
  justify-self: end;
}

.blog-shell {
  width: min(var(--max), calc(100% - 36px));
}

.blog-simple-item a {
  grid-template-columns: 42px minmax(0, 1fr) 116px 34px;
}

.blog-simple-thumb {
  width: 116px;
  height: 78px;
  overflow: hidden;
  border: 1px solid rgba(21, 21, 21, 0.07);
  border-radius: 18px;
  background:
    radial-gradient(circle at 20% 20%, rgba(0, 191, 255, 0.13), transparent 5rem),
    radial-gradient(circle at 80% 28%, rgba(0, 191, 255, 0.1), transparent 5rem),
    rgba(255, 255, 255, 0.46);
}

.blog-simple-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-simple-thumb span {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  color: var(--red);
  font-size: 0.68rem;
  font-weight: 900;
  text-transform: uppercase;
}

.blog-topics a.is-active {
  color: #ffffff;
  border-color: rgba(0, 191, 255, 0.22);
  background: var(--red);
  box-shadow: 0 12px 28px rgba(0, 191, 255, 0.14);
}

.comments-section {
  margin-top: 58px;
  padding: 0;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent !important;
  box-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  color-scheme: light dark;
}

body.dark-mode .comments-section {
  border: 0;
  background: transparent !important;
  box-shadow: none;
}

body.dark-mode .comments-section iframe {
  filter: invert(1) hue-rotate(180deg) saturate(0.92);
  opacity: 0.96;
  border-radius: 0;
  background: transparent !important;
  color-scheme: dark;
}

body.dark-mode .blog-simple-thumb {
  border-color: rgba(255, 255, 255, 0.065);
  background:
    radial-gradient(circle at 20% 20%, rgba(0, 191, 255, 0.16), transparent 5rem),
    radial-gradient(circle at 80% 28%, rgba(0, 191, 255, 0.12), transparent 5rem),
    rgba(255, 255, 255, 0.045);
}

body.dark-mode .blog-topics a.is-active {
  color: #ffffff;
  border-color: rgba(0, 191, 255, 0.28);
  background: linear-gradient(135deg, rgba(0, 191, 255, 0.85), rgba(0, 191, 255, 0.32));
}

@media (max-width: 1160px) {
  .site-header {
    grid-template-columns: 1fr auto 1fr;
  }

  .nav-links {
    display: flex;
  }
}

@media (max-width: 820px) {
  .blog-simple-item a {
    grid-template-columns: 42px minmax(0, 1fr) 34px;
  }

  .blog-simple-thumb {
    display: none;
  }
}

@media (max-width: 680px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .nav-links {
    display: none;
  }
}

/* Tech clarity edition */
:root {
  --bg: #fbfbfa;
  --paper: rgba(255, 255, 255, 0.82);
  --paper-strong: rgba(255, 255, 255, 0.94);
  --glass: rgba(255, 255, 255, 0.76);
  --glass-strong: rgba(255, 255, 255, 0.92);
  --ink: #08090a;
  --muted: #5d626a;
  --faint: #8b929b;
  --line: rgba(8, 9, 10, 0.105);
  --line-strong: rgba(8, 9, 10, 0.2);
  --red: #111111;
  --red-deep: #000000;
  --red-soft: rgba(8, 9, 10, 0.055);
  --blue: #3b82f6;
  --blue-soft: rgba(0, 191, 255, 0.07);
  --charcoal: #08090a;
  --charcoal-soft: #17191d;
  --shadow: none;
  --shadow-soft: none;
  --glass-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.86);
  --radius: 16px;
  --radius-sm: 10px;
  --max: 1240px;
}

body.dark-mode {
  --bg: #070809;
  --paper: rgba(14, 16, 19, 0.72);
  --paper-strong: rgba(18, 20, 24, 0.88);
  --glass: rgba(15, 17, 21, 0.7);
  --glass-strong: rgba(21, 24, 29, 0.86);
  --ink: #f6f7f8;
  --muted: #a7adb6;
  --faint: #737b87;
  --line: rgba(255, 255, 255, 0.095);
  --line-strong: rgba(255, 255, 255, 0.18);
  --red: #ffffff;
  --red-deep: #f6f7f8;
  --red-soft: rgba(255, 255, 255, 0.07);
  --blue-soft: rgba(56, 189, 248, 0.11);
  --charcoal: #f6f7f8;
  --charcoal-soft: #dfe3e8;
  --glass-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

body {
  background:
    linear-gradient(rgba(8, 9, 10, 0.032) 1px, transparent 1px),
    linear-gradient(90deg, rgba(8, 9, 10, 0.032) 1px, transparent 1px),
    linear-gradient(180deg, #ffffff 0%, #f7f7f5 100%);
  background-size: 48px 48px, 48px 48px, auto;
  font-family: var(--gh-font-body, Geist, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif);
}

body.dark-mode {
  background:
    linear-gradient(rgba(255, 255, 255, 0.038) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.038) 1px, transparent 1px),
    linear-gradient(180deg, #070809 0%, #0b0d10 100%);
  background-size: 48px 48px, 48px 48px, auto;
}

h1,
h2,
h3 {
  font-family: var(--gh-font-heading, Geist, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif);
  letter-spacing: -0.015em;
}

p {
  font-size: 0.98rem;
  line-height: 1.7;
}

.eyebrow,
.section-kicker,
.post-meta span,
.blog-topics span,
.blog-topics a,
.footer-links strong,
.featured-caption span,
.recent-post span,
.fit-summary-eyebrow,
.post-cta .eyebrow,
.blog-simple-number,
.blog-simple-thumb span {
  font-family: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  letter-spacing: 0;
}

.site-header {
  top: 16px;
  min-height: 58px;
  padding: 6px 6px 6px 16px;
  border-color: var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 10px 28px rgba(8, 9, 10, 0.045), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

body.dark-mode .site-header {
  background: rgba(10, 12, 15, 0.82);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.065);
}

.brand {
  font-family: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.82rem;
  font-weight: 700;
}

.brand-text::before {
  content: "// ";
  color: var(--faint);
}

.nav-links {
  border-radius: 12px;
  background: rgba(8, 9, 10, 0.035);
}

body.dark-mode .nav-links {
  background: rgba(255, 255, 255, 0.045);
}

.nav-links a {
  border-radius: 9px;
  color: var(--muted);
  font-family: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.74rem;
  font-weight: 600;
}

.nav-links a:hover,
.nav-links a.is-active {
  color: var(--ink);
  background: var(--paper-strong);
  box-shadow: none;
}

body.dark-mode .nav-links a:hover,
body.dark-mode .nav-links a.is-active {
  background: rgba(255, 255, 255, 0.075);
}

.theme-toggle,
.header-cta,
.button,
.text-link {
  border-radius: 12px;
}

.theme-toggle {
  width: 42px;
  height: 42px;
  border-color: var(--line);
  background: var(--paper);
  box-shadow: none;
}

.header-cta,
.button-primary {
  color: #ffffff;
  background: #08090a;
}

body.dark-mode .header-cta,
body.dark-mode .button-primary {
  color: #08090a;
  background: #f6f7f8;
}

.hero {
  padding-top: clamp(64px, 9vw, 118px);
}

.hero h1 {
  max-width: 1040px;
  font-size: clamp(3rem, 7vw, 7.4rem);
  line-height: 0.93;
}

.hero .eyebrow,
.section-kicker {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--muted);
  background: var(--paper);
  font-size: 0.72rem;
  text-transform: uppercase;
}

.ai-shape-section,
.section,
.final-cta {
  border-top: 1px solid var(--line);
}

.ai-shape-section {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(320px, 0.78fr);
  gap: clamp(32px, 5vw, 72px);
  padding-top: clamp(56px, 7vw, 96px);
}

.ai-shape-stage,
.fit-summary,
.about-panel,
.faq-list details,
.recent-post-feature,
.post-cta,
.author-card,
.side-card,
.blog-simple-item a,
.post-feature-image img,
.featured-placeholder,
.site-footer {
  border-radius: 16px;
  border-color: var(--line);
  background: var(--paper);
  box-shadow: none;
}

.ai-shape-stage {
  background:
    linear-gradient(rgba(8, 9, 10, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(8, 9, 10, 0.04) 1px, transparent 1px),
    #f6f6f4;
  background-size: 22px 22px;
}

body.dark-mode .ai-shape-stage {
  background:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    #0c0e11;
  background-size: 22px 22px;
}

.pack-layer {
  border-radius: 10px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.82), rgba(235, 237, 240, 0.9)),
    #ffffff;
}

body.dark-mode .pack-layer {
  background:
    linear-gradient(90deg, rgba(42, 46, 54, 0.9), rgba(18, 21, 27, 0.95)),
    #111318;
}

.ai-shape-points span,
.audience-grid button,
.blog-topics a,
.post-meta span,
.profile-links a,
.author-socials a,
.share-actions a,
.pagination a,
.pagination span {
  border-radius: 10px;
  background: var(--paper);
  box-shadow: none;
}

.audience-grid button.is-active,
.blog-topics a.is-active {
  color: #ffffff;
  background: #08090a;
}

body.dark-mode .audience-grid button.is-active,
body.dark-mode .blog-topics a.is-active {
  color: #08090a;
  background: #f6f7f8;
}

.fit-summary::before,
.fit-summary::after,
.recent-post-feature::before,
.recent-post-feature::after,
.featured-placeholder::before,
.featured-placeholder::after {
  opacity: 0.45;
  border-radius: 10px;
  background: transparent;
}

.blog-shell {
  width: min(var(--max), calc(100% - 36px));
}

.blog-simple-list {
  gap: 8px;
}

.blog-simple-item a {
  min-height: 112px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.76);
}

.blog-simple-item a:hover {
  transform: translateY(-1px);
  border-color: var(--line-strong);
  background: #ffffff;
}

body.dark-mode .blog-simple-item a {
  background: rgba(12, 14, 18, 0.78);
}

body.dark-mode .blog-simple-item a:hover {
  background: rgba(18, 21, 27, 0.9);
}

.blog-simple-number {
  border-radius: 9px;
}

.blog-simple-thumb {
  border-radius: 10px;
  background:
    linear-gradient(rgba(8, 9, 10, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(8, 9, 10, 0.05) 1px, transparent 1px),
    rgba(255, 255, 255, 0.55);
  background-size: 12px 12px;
}

body.dark-mode .blog-simple-thumb {
  background:
    linear-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.055) 1px, transparent 1px),
    rgba(255, 255, 255, 0.045);
  background-size: 12px 12px;
}

.post-content blockquote,
.gh-content .kg-callout-card {
  border-radius: 14px;
  box-shadow: none;
}

.gh-content pre,
.gh-content .kg-code-card pre,
.code-card {
  border-radius: 14px;
  background: #08090a;
  box-shadow: none;
}

pre code,
.gh-content pre code,
.gh-content .kg-code-card pre code {
  font-family: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.86rem;
}

.post-content hr,
.gh-content hr {
  background: var(--line);
}

.site-footer {
  background:
    linear-gradient(rgba(8, 9, 10, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(8, 9, 10, 0.045) 1px, transparent 1px),
    var(--paper);
  background-size: 24px 24px;
}

body.dark-mode .site-footer {
  background:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    rgba(12, 14, 18, 0.84);
  background-size: 24px 24px;
}

@media (max-width: 980px) {
  .ai-shape-section {
    grid-template-columns: 1fr;
  }
}

/* Final tech polish */
:root {
  --red: #00BFFF;
  --red-deep: #0099cc;
  --red-soft: rgba(0, 191, 255, 0.075);
}

body.dark-mode {
  --red: #38BDF8;
  --red-deep: #7DD3FC;
  --red-soft: rgba(56, 189, 248, 0.11);
}

.ai-shape-section,
.section,
.final-cta {
  border-top: 0;
}

.section-kicker,
.hero .eyebrow,
.scorecard-kicker {
  color: var(--red);
  border-color: rgba(0, 191, 255, 0.18);
  background: var(--red-soft);
}

body.dark-mode .section-kicker,
body.dark-mode .hero .eyebrow,
body.dark-mode .scorecard-kicker {
  border-color: rgba(56, 189, 248, 0.2);
}

.nav-links a.is-active {
  color: var(--red);
}

.header-cta:hover,
.button-primary:hover,
body.dark-mode .header-cta:hover,
body.dark-mode .button-primary:hover {
  color: #ffffff;
  background: #00BFFF;
}

.audience-grid button.is-active,
.blog-topics a.is-active {
  color: var(--red);
  border-color: rgba(0, 191, 255, 0.18);
  background: var(--red-soft);
}

body.dark-mode .audience-grid button.is-active,
body.dark-mode .blog-topics a.is-active {
  color: #ff7378;
  border-color: rgba(56, 189, 248, 0.22);
  background: rgba(56, 189, 248, 0.11);
}

.post-back-link {
  min-height: 38px;
  padding: 0 12px;
  border-radius: 10px;
  color: var(--muted);
  background: var(--paper);
  box-shadow: none;
  font-family: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.74rem;
  text-transform: uppercase;
}

.post-back-link:hover,
body.dark-mode .post-back-link:hover {
  color: var(--red);
  border-color: rgba(0, 191, 255, 0.18);
  background: var(--red-soft);
  transform: translateX(-2px);
}

.blog-simple-thumb.has-image-fallback,
.post-feature-image.has-image-fallback {
  position: relative;
  display: grid;
  min-height: 78px;
  place-items: center;
}

.post-feature-image.has-image-fallback {
  min-height: clamp(260px, 34vw, 460px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background:
    linear-gradient(rgba(8, 9, 10, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(8, 9, 10, 0.05) 1px, transparent 1px),
    var(--paper);
  background-size: 24px 24px;
}

.blog-simple-thumb.has-image-fallback::before,
.post-feature-image.has-image-fallback::before {
  content: "AI";
  display: grid;
  width: 46px;
  height: 34px;
  place-items: center;
  border: 1px solid rgba(0, 191, 255, 0.2);
  border-radius: 9px;
  color: var(--red);
  background: var(--red-soft);
  font-family: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.72rem;
  font-weight: 800;
}

.site-footer {
  border-top: 1px solid var(--line);
}

.site-footer-inner {
  gap: clamp(24px, 4vw, 48px);
}

.footer-bottom {
  align-items: center;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--faint);
  font-family: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.72rem;
}

.footer-bottom span:last-child {
  color: var(--red);
}

.toc-card {
  padding: 0;
  overflow: hidden;
}

.toc-card summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px;
  cursor: pointer;
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 800;
  list-style: none;
}

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

.toc-card summary::after {
  content: "+";
  color: var(--red);
  font-family: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.toc-card[open] summary::after {
  content: "-";
}

.toc-card .toc-list {
  padding: 0 16px 16px;
}

@media (max-width: 980px) {
  .post-side {
    position: static;
    display: block;
    margin-top: 22px;
    order: -1;
  }

  .post-layout {
    display: flex;
    flex-direction: column;
  }

  .toc-card {
    margin-bottom: 18px;
  }

  .toc-card .toc-list {
    max-height: 300px;
  }
}

@media (max-width: 680px) {
  .site-footer {
    width: min(100% - 20px, var(--max));
    margin-top: 48px;
    border-radius: 14px;
  }

  .site-footer-inner,
  .footer-bottom {
    grid-template-columns: 1fr;
  }

  .footer-brand-block,
  .footer-links,
  .footer-bottom {
    min-width: 0;
  }

  .footer-bottom {
    gap: 8px;
    text-align: left;
  }

  .footer-socials {
    flex-wrap: wrap;
  }

  .post-shell {
    width: min(100% - 22px, var(--max));
  }
}

/* Workflow scorecard modal */
body.modal-open {
  overflow: hidden;
}

.scorecard-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  padding: 22px;
}

.scorecard-modal.is-open {
  display: grid;
  place-items: center;
}

.scorecard-backdrop {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(8, 9, 10, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(8, 9, 10, 0.08) 1px, transparent 1px),
    rgba(8, 9, 10, 0.58);
  background-size: 42px 42px;
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.scorecard-dialog {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  width: min(100%, 1120px);
  max-height: min(92vh, 900px);
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  background:
    linear-gradient(rgba(8, 9, 10, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(8, 9, 10, 0.035) 1px, transparent 1px),
    #ffffff;
  background-size: 28px 28px;
  box-shadow: 0 34px 120px rgba(0, 0, 0, 0.22);
}

body.dark-mode .scorecard-dialog {
  background:
    linear-gradient(rgba(255, 255, 255, 0.042) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.042) 1px, transparent 1px),
    #0b0d10;
  background-size: 28px 28px;
  box-shadow: 0 34px 120px rgba(0, 0, 0, 0.5);
}

.scorecard-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--muted);
  background: var(--paper);
  cursor: pointer;
}

.scorecard-close:hover {
  color: var(--ink);
  border-color: var(--line-strong);
}

.scorecard-main {
  min-width: 0;
  max-height: min(92vh, 900px);
  overflow-y: auto;
  padding: clamp(24px, 4vw, 44px);
}

.scorecard-header {
  max-width: 760px;
  margin-bottom: 26px;
}

.scorecard-kicker,
.score-step legend,
.scorecard-progress span,
.preview-label,
.scorecard-preview dt,
.scorecard-status {
  font-family: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.scorecard-kicker {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  margin: 0 0 14px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--muted);
  background: var(--paper);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
}

.scorecard-header h2 {
  max-width: 760px;
  font-size: clamp(2rem, 4vw, 4.1rem);
  line-height: 0.98;
}

.scorecard-header p {
  max-width: 680px;
  margin-top: 14px;
}

.scorecard-progress {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 20px;
}

.scorecard-progress span {
  min-height: 34px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--faint);
  background: var(--paper);
  font-size: 0.7rem;
  font-weight: 700;
  text-align: center;
  text-transform: uppercase;
}

.scorecard-progress span.is-active {
  color: #ffffff;
  border-color: #08090a;
  background: #08090a;
}

body.dark-mode .scorecard-progress span.is-active {
  color: #08090a;
  border-color: #f6f7f8;
  background: #f6f7f8;
}

.score-step {
  display: none;
  margin: 0;
  padding: 0;
  border: 0;
}

.score-step.is-active {
  display: grid;
  gap: 18px;
}

.score-step legend {
  margin-bottom: 4px;
  color: var(--faint);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
}

.field-block {
  display: grid;
  gap: 8px;
}

.field-block span,
.choice-group > span {
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 700;
}

.field-block em {
  color: var(--faint);
  font-style: normal;
  font-weight: 500;
}

.field-block textarea,
.field-block input,
.field-block select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--ink);
  background: var(--paper-strong);
  font: inherit;
  font-size: 0.95rem;
}

.field-block textarea {
  resize: vertical;
  min-height: 126px;
  padding: 14px;
}

.field-block input,
.field-block select {
  min-height: 46px;
  padding: 0 13px;
}

.field-block textarea:focus,
.field-block input:focus,
.field-block select:focus {
  outline: 2px solid rgba(8, 9, 10, 0.22);
  outline-offset: 2px;
}

body.dark-mode .field-block textarea:focus,
body.dark-mode .field-block input:focus,
body.dark-mode .field-block select:focus {
  outline-color: rgba(255, 255, 255, 0.28);
}

.choice-group {
  display: grid;
  gap: 8px;
}

.choice-group label {
  display: flex;
  min-height: 42px;
  align-items: center;
  gap: 9px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--muted);
  background: var(--paper);
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 600;
}

.choice-group label:has(input:checked) {
  color: var(--ink);
  border-color: var(--line-strong);
  background: var(--paper-strong);
}

.choice-group input {
  accent-color: #08090a;
}

body.dark-mode .choice-group input {
  accent-color: #f6f7f8;
}

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

.choice-grid > span {
  grid-column: 1 / -1;
}

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

.contact-wide {
  grid-column: 1 / -1;
}

.scorecard-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.scorecard-actions button {
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--ink);
  background: var(--paper);
  cursor: pointer;
  font: inherit;
  font-size: 0.86rem;
  font-weight: 800;
}

.scorecard-actions button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.scorecard-next,
.scorecard-submit {
  color: #ffffff !important;
  border-color: #08090a !important;
  background: #08090a !important;
}

body.dark-mode .scorecard-next,
body.dark-mode .scorecard-submit {
  color: #08090a !important;
  border-color: #f6f7f8 !important;
  background: #f6f7f8 !important;
}

.scorecard-status {
  min-height: 20px;
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.74rem;
}

.scorecard-preview {
  display: grid;
  align-content: start;
  gap: 18px;
  min-width: 0;
  padding: clamp(24px, 3vw, 34px);
  border-left: 1px solid var(--line);
  background:
    linear-gradient(rgba(8, 9, 10, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(8, 9, 10, 0.045) 1px, transparent 1px),
    rgba(8, 9, 10, 0.035);
  background-size: 18px 18px;
}

body.dark-mode .scorecard-preview {
  background:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    rgba(255, 255, 255, 0.035);
  background-size: 18px 18px;
}

.preview-label {
  color: var(--faint);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
}

.scorecard-preview strong {
  font-size: clamp(1.35rem, 2vw, 2rem);
  line-height: 1.05;
}

.score-meter {
  height: 10px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
}

.score-meter span {
  display: block;
  width: 8%;
  height: 100%;
  border-radius: inherit;
  background: #08090a;
  transition: width 220ms ease;
}

body.dark-mode .score-meter span {
  background: #f6f7f8;
}

.scorecard-preview dl {
  display: grid;
  gap: 10px;
  margin: 0;
}

.scorecard-preview dl div {
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
}

.scorecard-preview dt {
  margin-bottom: 5px;
  color: var(--faint);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
}

.scorecard-preview dd {
  margin: 0;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.35;
}

.scorecard-preview p {
  font-size: 0.82rem;
  line-height: 1.55;
}

@media (max-width: 900px) {
  .scorecard-dialog {
    grid-template-columns: 1fr;
    overflow-y: auto;
  }

  .scorecard-main {
    max-height: none;
  }

  .scorecard-preview {
    border-top: 1px solid var(--line);
    border-left: 0;
  }
}

@media (max-width: 620px) {
  .scorecard-modal {
    padding: 10px;
  }

  .scorecard-dialog {
    max-height: 94vh;
    border-radius: 14px;
  }

  .scorecard-main,
  .scorecard-preview {
    padding: 20px;
  }

  .scorecard-progress,
  .choice-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .choice-grid > span,
  .contact-wide {
    grid-column: auto;
  }

  .scorecard-actions {
    justify-content: stretch;
  }

  .scorecard-actions button {
    flex: 1;
    padding: 0 10px;
  }
}

/* Final refinements: search, media, fit workflow, footer */
.theme-icon-sun {
  opacity: 0;
  transform: translateY(-18px) rotate(24deg) scale(0.72);
}

.theme-icon-moon {
  opacity: 1;
  transform: translateY(0) rotate(0deg) scale(1);
}

.theme-toggle:hover .theme-icon-sun {
  transform: translateY(-18px) rotate(12deg) scale(0.78);
}

.theme-toggle:hover .theme-icon-moon {
  transform: translateY(0) rotate(-10deg) scale(1.06);
}

body.dark-mode .theme-icon-sun {
  opacity: 1;
  transform: translateY(0) rotate(0deg) scale(1);
}

body.dark-mode .theme-icon-moon {
  opacity: 0;
  transform: translateY(18px) rotate(-24deg) scale(0.72);
}

body.dark-mode .theme-toggle:hover .theme-icon-sun {
  transform: translateY(0) rotate(18deg) scale(1.06);
}

.blog-search-button {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--muted);
  background: var(--paper);
  box-shadow: none;
  cursor: pointer;
  font: inherit;
  font-family: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.74rem;
  font-weight: 700;
}

.blog-search-button:hover {
  color: var(--red);
  border-color: rgba(0, 191, 255, 0.18);
  background: var(--red-soft);
}

.nav-search-button {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--muted);
  background: var(--paper);
  cursor: pointer;
}

.nav-search-button:hover {
  color: var(--red);
  border-color: rgba(0, 191, 255, 0.18);
  background: var(--red-soft);
}

.recent-post-feature {
  align-content: stretch;
}

.recent-post-media {
  position: relative;
  min-height: 170px;
  margin-bottom: auto;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background:
    linear-gradient(rgba(8, 9, 10, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(8, 9, 10, 0.05) 1px, transparent 1px),
    var(--paper);
  background-size: 18px 18px;
}

.recent-post-media img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 170px;
  object-fit: cover;
}

.workflow-placeholder {
  position: absolute;
  inset: 18px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.workflow-placeholder span {
  position: relative;
  display: block;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.64);
}

.workflow-placeholder span::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  top: 50%;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--red), transparent);
}

body.dark-mode .workflow-placeholder span {
  background: rgba(255, 255, 255, 0.045);
}

.blog-simple-thumb:not(:has(img)) {
  position: relative;
}

.blog-simple-thumb:not(:has(img))::before,
.blog-simple-thumb:not(:has(img))::after {
  content: "";
  position: absolute;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.blog-simple-thumb:not(:has(img))::before {
  inset: 14px 42px 38px 12px;
}

.blog-simple-thumb:not(:has(img))::after {
  inset: 40px 12px 14px 42px;
}

.blog-simple-thumb:not(:has(img)) span {
  position: relative;
  z-index: 1;
  width: max-content;
  height: auto;
  margin: auto;
  padding: 6px 8px;
  border: 1px solid rgba(0, 191, 255, 0.18);
  border-radius: 8px;
  background: var(--red-soft);
}

.toc-card {
  position: relative;
}

.toc-card[open].has-scroll::after {
  content: "";
  position: absolute;
  right: 8px;
  bottom: 8px;
  left: 8px;
  height: 38px;
  pointer-events: none;
  border-radius: 0 0 12px 12px;
  background: linear-gradient(180deg, transparent, var(--paper-strong));
}

.toc-card .toc-list::after {
  content: "Scroll for more";
  position: sticky;
  bottom: 0;
  display: block;
  padding: 8px 0 0;
  color: var(--faint);
  background: linear-gradient(180deg, transparent, var(--paper-strong) 35%);
  font-family: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.66rem;
  font-weight: 700;
  text-transform: uppercase;
}

.toc-card.is-at-bottom .toc-list::after {
  content: "Scroll up";
  padding: 0 0 8px;
  background: linear-gradient(0deg, transparent, var(--paper-strong) 35%);
}

.toc-card:not(.has-scroll)::after,
.toc-card:not(.has-scroll) .toc-list::after {
  display: none;
}

.fit-summary {
  gap: 20px;
}

.fit-workflow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.fit-workflow span {
  position: relative;
  display: grid;
  min-height: 52px;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--ink);
  background: var(--paper);
  font-family: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.7rem;
  font-weight: 800;
  text-align: center;
}

.fit-workflow span::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(0, 191, 255, 0.18), transparent);
  transform: translateX(-120%);
  animation: fit-node-scan 3.2s linear infinite;
}

.fit-workflow span:not(:last-child)::after {
  content: "→";
  position: absolute;
  right: -11px;
  z-index: 2;
  color: var(--red);
  font-family: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.85rem;
  animation: fit-arrow 3.2s ease-in-out infinite;
}

.fit-workflow span:nth-child(2)::after {
  animation-delay: 0.35s;
}

.fit-workflow span:nth-child(3)::after {
  animation-delay: 0.7s;
}

.fit-workflow span:nth-child(2)::before {
  animation-delay: 0.35s;
}

.fit-workflow span:nth-child(3)::before {
  animation-delay: 0.7s;
}

.fit-workflow span:nth-child(4)::before {
  animation-delay: 1.05s;
}

@keyframes fit-node-scan {
  0%, 18% {
    transform: translateX(-120%);
  }
  42%, 100% {
    transform: translateX(120%);
  }
}

@keyframes fit-arrow {
  0%, 16%, 100% {
    opacity: 0.25;
    transform: translateX(-2px);
  }
  28%, 45% {
    opacity: 1;
    transform: translateX(3px);
  }
}

.profile-links a {
  min-height: 42px;
  border-radius: 10px;
  font-family: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.72rem;
}

.profile-links a[href="/blog"] svg {
  display: none;
}

.footer-bottom {
  margin-top: 14px;
  padding: 14px 0 0;
  border-top: 0;
  border-radius: 0;
  background: transparent;
  color: var(--faint);
}

.footer-bottom span:last-child {
  color: var(--muted);
}

body.dark-mode .footer-bottom {
  background: transparent;
  color: var(--faint);
}

body.dark-mode .footer-bottom span:last-child {
  color: var(--muted);
}

.scorecard-dialog {
  grid-template-columns: minmax(0, 1fr) minmax(240px, 320px);
}

.scorecard-preview {
  gap: 14px;
}

.scorecard-preview dl div {
  padding: 11px;
}

.scorecard-preview dd {
  font-size: 0.84rem;
}

@media (max-width: 900px) {
  .scorecard-dialog {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .fit-workflow {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .fit-workflow span:nth-child(2)::after {
    display: none;
  }

  .recent-post-media {
    min-height: 140px;
  }

  .footer-bottom {
    margin-right: 0;
    margin-left: 0;
  }

  .blog-shell {
    width: min(100% - 22px, var(--max));
  }

  .blog-hero {
    padding-top: 34px;
  }

  .blog-shell .post-title {
    font-size: clamp(2rem, 12vw, 3.2rem);
  }

  .blog-topics {
    overflow-x: auto;
    flex-wrap: nowrap;
    margin-right: -11px;
    margin-left: -11px;
    padding: 0 11px 8px;
    scrollbar-width: none;
  }

  .blog-topics::-webkit-scrollbar {
    display: none;
  }

  .blog-topics > * {
    flex: 0 0 auto;
  }

  .blog-simple-list {
    gap: 12px;
  }

  .blog-simple-item a {
    grid-template-columns: 1fr;
    gap: 14px;
    min-height: 0;
    padding: 16px;
  }

  .blog-simple-number {
    grid-column: auto;
    width: max-content;
    padding: 0 10px;
    border-radius: 999px;
  }

  .blog-simple-thumb {
    display: block;
    width: 100%;
    height: 150px;
    order: -1;
  }

  .blog-simple-item i {
    display: none;
  }

  .blog-simple-copy .post-meta {
    gap: 6px;
  }

  .blog-simple-copy h2 {
    font-size: clamp(1.18rem, 6vw, 1.55rem);
  }

  .blog-simple-copy p {
    -webkit-line-clamp: 3;
  }
}

/* Final feedback pass: mobile, pagination, connected fit flow, portrait polish */
.pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 38px auto 0;
}

.pagination-link,
.pagination-count {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 18px;
  border: 1px solid rgba(21, 21, 21, 0.08);
  border-radius: 999px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.86), 0 10px 26px rgba(15, 23, 42, 0.045);
  -webkit-backdrop-filter: blur(18px) saturate(145%);
  backdrop-filter: blur(18px) saturate(145%);
  font-size: 0.86rem;
  font-weight: 850;
}

.pagination-link span,
.pagination-link i {
  display: inline;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  color: inherit;
  background: transparent;
  box-shadow: none;
  font: inherit;
}

.pagination-link i {
  font: var(--fa-font-solid);
  font-size: 0.84rem;
  line-height: 1;
}

.pagination-count {
  color: var(--muted);
  font-weight: 750;
}

.pagination-link:hover {
  color: #ffffff;
  border-color: rgba(0, 191, 255, 0.18);
  background: var(--red);
  transform: translateY(-1px);
}

.pagination-link.is-disabled {
  display: none;
}

body.dark-mode .pagination-link,
body.dark-mode .pagination-count {
  border-color: rgba(255, 255, 255, 0.07);
  color: rgba(247, 247, 248, 0.88);
  background: rgba(255, 255, 255, 0.055);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.055);
}

body.dark-mode .pagination-link:hover {
  color: #ffffff;
  background: linear-gradient(135deg, rgba(0, 191, 255, 0.88), rgba(0, 191, 255, 0.28));
}

.audience-rail {
  overflow: visible;
}

.audience-grid {
  padding-bottom: 34px;
}

.fit-summary {
  overflow: visible;
}

.fit-workflow {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.fit-workflow span {
  position: relative;
  min-height: 58px;
  overflow: visible;
  border-color: rgba(21, 21, 21, 0.08);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.5)),
    rgba(255, 255, 255, 0.62);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.86), 0 12px 28px rgba(15, 23, 42, 0.04);
}

.fit-workflow span:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -18px;
  z-index: 3;
  width: 24px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(0, 191, 255, 0.18), rgba(0, 191, 255, 0.95), rgba(0, 191, 255, 0.55), rgba(0, 191, 255, 0.18));
  background-size: 220% 100%;
  box-shadow: 0 0 18px rgba(0, 191, 255, 0.2);
  transform: translateY(-50%);
  animation: fit-connection 2.2s ease-in-out infinite;
}

.fit-workflow span:last-child {
  color: #ffffff;
  border-color: rgba(32, 170, 102, 0.26);
  background:
    radial-gradient(circle at 78% 24%, rgba(255, 255, 255, 0.28), transparent 4rem),
    linear-gradient(135deg, #111111, #173925);
  box-shadow:
    0 18px 42px rgba(25, 148, 82, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.fit-workflow span:last-child::after {
  content: "\f00c";
  position: absolute;
  top: -10px;
  right: -8px;
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 999px;
  color: #ffffff;
  background: #20a66b;
  box-shadow: 0 0 0 7px rgba(32, 166, 107, 0.12), 0 12px 24px rgba(32, 166, 107, 0.2);
  font: var(--fa-font-solid);
  font-size: 0.72rem;
  animation: fit-success 2.2s ease-in-out infinite;
}

body.dark-mode .fit-workflow span {
  border-color: rgba(255, 255, 255, 0.07);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.065), rgba(255, 255, 255, 0.03)),
    rgba(255, 255, 255, 0.045);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 16px 38px rgba(0, 0, 0, 0.16);
}

body.dark-mode .fit-workflow span:last-child {
  border-color: rgba(50, 190, 122, 0.22);
  background:
    radial-gradient(circle at 76% 18%, rgba(255, 255, 255, 0.16), transparent 4rem),
    linear-gradient(135deg, rgba(18, 23, 30, 0.96), rgba(16, 48, 31, 0.72));
}

@keyframes fit-connection {
  0%,
  100% {
    background-position: 0% 50%;
    opacity: 0.58;
  }
  50% {
    background-position: 100% 50%;
    opacity: 1;
  }
}

@keyframes fit-success {
  0%,
  100% {
    transform: scale(0.96);
  }
  50% {
    transform: scale(1.08);
  }
}

.about-profile {
  isolation: isolate;
  perspective: 900px;
}

.about-profile::before,
.about-profile::after {
  content: "";
  position: absolute;
  inset: 38px 12px auto;
  z-index: 0;
  height: 180px;
  border-radius: 42px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 260ms ease, transform 360ms ease;
}

.about-profile::before {
  background:
    linear-gradient(rgba(0, 191, 255, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 191, 255, 0.11) 1px, transparent 1px);
  background-size: 24px 24px;
  transform: rotateX(64deg) rotateZ(-8deg) translateY(24px) scale(0.9);
}

.about-profile::after {
  background: radial-gradient(circle at 50% 50%, rgba(0, 191, 255, 0.24), transparent 42%), radial-gradient(circle at 62% 42%, rgba(0, 191, 255, 0.2), transparent 36%);
  filter: blur(22px);
  transform: translateY(18px) scale(0.82);
}

.about-profile:hover::before,
.about-profile:hover::after {
  opacity: 1;
  transform: rotateX(64deg) rotateZ(-8deg) translateY(0) scale(1);
}

.about-profile:hover::after {
  transform: translateY(0) scale(1);
}

.portrait-photo {
  transition: transform 360ms cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 360ms ease, filter 360ms ease;
}

.about-profile:hover .portrait-photo {
  transform: translateY(-8px) rotateX(3deg) rotateY(-5deg) scale(1.035);
  filter: saturate(1.06) contrast(1.03);
  box-shadow:
    0 34px 90px rgba(21, 21, 21, 0.22),
    0 0 0 12px rgba(255, 255, 255, 0.34),
    0 0 44px rgba(0, 191, 255, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

body.dark-mode .about-profile:hover .portrait-photo {
  box-shadow:
    0 36px 98px rgba(0, 0, 0, 0.42),
    0 0 0 10px rgba(255, 255, 255, 0.04),
    0 0 54px rgba(0, 191, 255, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.recent-post-feature {
  border-color: rgba(21, 21, 21, 0.1);
  background:
    radial-gradient(circle at 18% 18%, rgba(0, 191, 255, 0.11), transparent 16rem),
    radial-gradient(circle at 82% 24%, rgba(0, 191, 255, 0.1), transparent 18rem),
    rgba(255, 255, 255, 0.72);
  box-shadow: 0 22px 58px rgba(15, 23, 42, 0.075), inset 0 1px 0 rgba(255, 255, 255, 0.88);
}

.scorecard-header h2 {
  font-size: clamp(1.85rem, 3.5vw, 3.35rem);
}

.scorecard-progress span {
  position: relative;
}

.choice-group label {
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, color 160ms ease;
}

.choice-group label:hover {
  transform: translateY(-1px);
  border-color: rgba(0, 191, 255, 0.16);
}

.choice-group label:has(input:checked) {
  border-color: rgba(0, 191, 255, 0.22);
  background:
    linear-gradient(135deg, rgba(0, 191, 255, 0.075), rgba(0, 191, 255, 0.045)),
    var(--paper-strong);
}

.scorecard-preview {
  gap: 14px;
}

.scorecard-preview p {
  max-width: 34ch;
}

@media (max-width: 900px) {
  .site-header {
    top: 8px;
    width: min(100% - 18px, var(--max));
    min-height: 58px;
    padding: 8px 10px 8px 14px;
  }

  .brand {
    min-width: 0;
  }

  .brand-text {
    overflow: hidden;
    max-width: 48vw;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .header-actions {
    gap: 6px;
  }

  .nav-search-button,
  .theme-toggle {
    width: 42px;
    height: 42px;
  }

  .section,
  .blog-shell,
  .post-shell,
  .page-shell {
    width: min(100% - 22px, var(--max));
  }

  .section-grid,
  .about-panel,
  .audience-section .section-grid {
    grid-template-columns: 1fr;
  }

  .audience-section .section-intro,
  .fit-summary {
    grid-column: 1 / -1;
  }

  .fit-summary-copy {
    grid-template-rows: auto auto auto;
  }

  .recent-posts {
    grid-template-columns: 1fr;
    gap: 12px;
    border-top: 0;
  }

  .recent-post-feature {
    grid-row: auto;
    min-height: 0;
  }

  .post-layout,
  .post-grid {
    display: block;
  }

  .post-sidebar,
  .post-aside {
    position: static;
    width: 100%;
    margin-top: 24px;
  }
}

@media (max-width: 680px) {
  body {
    overflow-x: hidden;
  }

  .section {
    padding-block: 58px;
  }

  .hero,
  .hero-section {
    padding-top: 58px;
  }

  h1,
  .hero h1,
  .post-title,
  .blog-shell .post-title {
    font-size: clamp(2.25rem, 13vw, 4.15rem);
    line-height: 0.98;
  }

  h2,
  .section-heading h2,
  .section-intro h2 {
    font-size: clamp(2rem, 10vw, 3.2rem);
  }

  .about-panel {
    gap: 24px;
    padding: 22px;
    border-radius: 28px;
  }

  .about-profile {
    min-height: 0;
  }

  .portrait-photo {
    width: min(68vw, 180px);
  }

  .profile-links {
    width: 100%;
  }

  .fit-summary {
    min-height: 0;
    padding: 22px;
    border-radius: 28px;
  }

  .fit-summary strong {
    font-size: clamp(1.85rem, 10vw, 2.55rem);
  }

  .fit-workflow {
    grid-template-columns: 1fr;
  }

  .fit-workflow span:not(:last-child)::after {
    top: auto;
    right: 50%;
    bottom: -15px;
    width: 2px;
    height: 20px;
    transform: translateX(50%);
    background: linear-gradient(180deg, rgba(0, 191, 255, 0.18), rgba(0, 191, 255, 0.95), rgba(0, 191, 255, 0.55), rgba(0, 191, 255, 0.18));
    background-size: 100% 220%;
  }

  .audience-grid {
    padding: 14px 20px 34px;
  }

  .audience-grid button {
    min-height: 48px;
    padding: 0 18px;
    font-size: 0.86rem;
  }

  .blog-simple-item a {
    border-radius: 22px;
  }

  .blog-simple-thumb {
    height: 162px;
    border-radius: 18px;
  }

  .pagination {
    display: grid;
    grid-template-columns: 1fr;
    justify-items: stretch;
    gap: 9px;
  }

  .pagination-link,
  .pagination-count {
    width: 100%;
  }

  .scorecard-modal {
    padding: 8px;
  }

  .scorecard-dialog {
    width: 100%;
    max-height: 96dvh;
    border-radius: 18px;
  }

  .scorecard-main,
  .scorecard-preview {
    padding: 18px;
  }

  .scorecard-header {
    margin-bottom: 18px;
  }

  .scorecard-header h2 {
    font-size: clamp(1.7rem, 10vw, 2.6rem);
  }

  .scorecard-progress {
    display: flex;
    overflow-x: auto;
    padding-bottom: 6px;
    scrollbar-width: none;
  }

  .scorecard-progress::-webkit-scrollbar {
    display: none;
  }

  .scorecard-progress span {
    flex: 0 0 auto;
    min-width: 92px;
  }

  .choice-group label {
    align-items: flex-start;
    line-height: 1.3;
  }

  .scorecard-actions {
    position: sticky;
    bottom: 0;
    z-index: 4;
    margin-right: -18px;
    margin-bottom: -18px;
    margin-left: -18px;
    padding: 12px 18px 18px;
    background: linear-gradient(180deg, transparent, var(--bg) 24%);
  }

  body.dark-mode .scorecard-actions {
    background: linear-gradient(180deg, transparent, var(--bg) 24%);
  }
}

/* Fit workflow: calm sequential progress, success only at completion */
.fit-workflow {
  --fit-cycle: 4.8s;
  gap: 14px;
}

.fit-workflow span {
  overflow: hidden;
  color: var(--ink);
  border-color: rgba(21, 21, 21, 0.08);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.58)),
    rgba(255, 255, 255, 0.66);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.88), 0 12px 28px rgba(15, 23, 42, 0.035);
}

.fit-workflow span::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(90deg, transparent, rgba(0, 191, 255, 0.13), rgba(0, 191, 255, 0.07), transparent);
  opacity: 0;
  transform: translateX(-100%);
  animation: fit-step-pass var(--fit-cycle) cubic-bezier(0.65, 0, 0.35, 1) infinite;
}

.fit-workflow span {
  isolation: isolate;
}

.fit-workflow span:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -15px;
  z-index: 4;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background:
    linear-gradient(90deg, rgba(0, 191, 255, 0.18), rgba(0, 191, 255, 0.85), rgba(0, 191, 255, 0.45), rgba(0, 191, 255, 0.18));
  background-size: 220% 100%;
  box-shadow: 0 0 12px rgba(0, 191, 255, 0.16);
  opacity: 0.22;
  transform: translateY(-50%) scaleX(0.72);
  transform-origin: left center;
  animation: fit-link-pass var(--fit-cycle) ease-in-out infinite;
}

.fit-workflow span:nth-child(1)::before {
  animation-delay: 0s;
}

.fit-workflow span:nth-child(1)::after {
  animation-delay: 0.55s;
}

.fit-workflow span:nth-child(2)::before {
  animation-delay: 0.9s;
}

.fit-workflow span:nth-child(2)::after {
  animation-delay: 1.45s;
}

.fit-workflow span:nth-child(3)::before {
  animation-delay: 1.8s;
}

.fit-workflow span:nth-child(3)::after {
  animation-delay: 2.35s;
}

.fit-workflow span:nth-child(4) {
  color: var(--ink);
  border-color: rgba(21, 21, 21, 0.08);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.58)),
    rgba(255, 255, 255, 0.66);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.88), 0 12px 28px rgba(15, 23, 42, 0.035);
  animation: fit-goal-card var(--fit-cycle) ease-in-out infinite;
}

.fit-workflow span:nth-child(4)::before {
  background:
    radial-gradient(circle at 78% 22%, rgba(255, 255, 255, 0.34), transparent 4rem),
    linear-gradient(135deg, rgba(32, 166, 107, 0.2), rgba(32, 166, 107, 0.08));
  animation: fit-goal-fill var(--fit-cycle) ease-in-out infinite;
}

.fit-workflow span:nth-child(4)::after {
  content: "\f00c";
  position: absolute;
  top: -10px;
  right: -8px;
  z-index: 5;
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 999px;
  color: #ffffff;
  background: #28b879;
  box-shadow: 0 0 0 7px rgba(40, 184, 121, 0.12), 0 12px 24px rgba(40, 184, 121, 0.18);
  font: var(--fa-font-solid);
  font-size: 0.72rem;
  opacity: 0;
  transform: scale(0.72);
  animation: fit-goal-check var(--fit-cycle) ease-in-out infinite;
}

body.dark-mode .fit-workflow span,
body.dark-mode .fit-workflow span:nth-child(4) {
  color: rgba(247, 247, 248, 0.9);
  border-color: rgba(255, 255, 255, 0.07);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.065), rgba(255, 255, 255, 0.03)),
    rgba(255, 255, 255, 0.045);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 16px 38px rgba(0, 0, 0, 0.14);
}

body.dark-mode .fit-workflow span:nth-child(4) {
  animation-name: fit-goal-card-dark;
}

@keyframes fit-step-pass {
  0%,
  10%,
  100% {
    opacity: 0;
    transform: translateX(-100%);
  }
  18%,
  28% {
    opacity: 1;
  }
  38% {
    opacity: 0;
    transform: translateX(100%);
  }
}

@keyframes fit-link-pass {
  0%,
  18%,
  100% {
    opacity: 0.16;
    background-position: 0% 50%;
    transform: translateY(-50%) scaleX(0.72);
  }
  28%,
  42% {
    opacity: 1;
    background-position: 100% 50%;
    transform: translateY(-50%) scaleX(1);
  }
  52% {
    opacity: 0.2;
    transform: translateY(-50%) scaleX(0.72);
  }
}

@keyframes fit-goal-fill {
  0%,
  58%,
  100% {
    opacity: 0;
    transform: translateX(-30%);
  }
  68%,
  88% {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fit-goal-card {
  0%,
  62%,
  100% {
    color: var(--ink);
    border-color: rgba(21, 21, 21, 0.08);
    background:
      linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.58)),
      rgba(255, 255, 255, 0.66);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.88), 0 12px 28px rgba(15, 23, 42, 0.035);
  }
  72%,
  88% {
    color: #0d251a;
    border-color: rgba(40, 184, 121, 0.24);
    background:
      radial-gradient(circle at 82% 22%, rgba(255, 255, 255, 0.48), transparent 4rem),
      linear-gradient(135deg, rgba(40, 184, 121, 0.26), rgba(40, 184, 121, 0.12)),
      rgba(255, 255, 255, 0.78);
    box-shadow:
      0 18px 42px rgba(40, 184, 121, 0.12),
      inset 0 1px 0 rgba(255, 255, 255, 0.9);
  }
}

@keyframes fit-goal-check {
  0%,
  66%,
  100% {
    opacity: 0;
    transform: scale(0.72);
  }
  74%,
  90% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes fit-goal-card-dark {
  0%,
  62%,
  100% {
    color: rgba(247, 247, 248, 0.9);
    border-color: rgba(255, 255, 255, 0.07);
    background:
      linear-gradient(135deg, rgba(255, 255, 255, 0.065), rgba(255, 255, 255, 0.03)),
      rgba(255, 255, 255, 0.045);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 16px 38px rgba(0, 0, 0, 0.14);
  }
  72%,
  88% {
    color: #eafff4;
    border-color: rgba(40, 184, 121, 0.26);
    background:
      radial-gradient(circle at 82% 22%, rgba(255, 255, 255, 0.12), transparent 4rem),
      linear-gradient(135deg, rgba(40, 184, 121, 0.22), rgba(40, 184, 121, 0.08)),
      rgba(255, 255, 255, 0.055);
    box-shadow:
      0 18px 42px rgba(40, 184, 121, 0.1),
      inset 0 1px 0 rgba(255, 255, 255, 0.08);
  }
}

@media (max-width: 680px) {
  .fit-workflow span:not(:last-child)::after {
    top: auto;
    right: 50%;
    bottom: -16px;
    width: 2px;
    height: 22px;
    transform: translateX(50%) scaleY(0.72);
    transform-origin: top center;
    background: linear-gradient(180deg, rgba(0, 191, 255, 0.18), rgba(0, 191, 255, 0.85), rgba(0, 191, 255, 0.45), rgba(0, 191, 255, 0.18));
    background-size: 100% 220%;
    animation-name: fit-link-pass-mobile;
  }
}

@keyframes fit-link-pass-mobile {
  0%,
  18%,
  100% {
    opacity: 0.16;
    background-position: 50% 0%;
    transform: translateX(50%) scaleY(0.72);
  }
  28%,
  42% {
    opacity: 1;
    background-position: 50% 100%;
    transform: translateX(50%) scaleY(1);
  }
  52% {
    opacity: 0.2;
    transform: translateX(50%) scaleY(0.72);
  }
}

/* Fit workflow shine: wider stage, no clipped success, sequential border color */
.fit-summary {
  padding-right: clamp(30px, 4vw, 56px);
}

.fit-workflow {
  gap: 18px;
  padding: 12px 18px 14px 4px;
  margin-right: 6px;
  overflow: visible;
}

.fit-workflow span {
  overflow: visible;
  border: 0;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.6)) padding-box,
    linear-gradient(120deg, rgba(21, 21, 21, 0.11), rgba(21, 21, 21, 0.055), rgba(21, 21, 21, 0.11)) border-box;
  border: 1px solid transparent;
  animation: fit-border-gray var(--fit-cycle) ease-in-out infinite;
}

.fit-workflow span::before {
  inset: 1px;
  border-radius: 9px;
}

.fit-workflow span:not(:last-child)::after {
  right: -21px;
  width: 24px;
}

.fit-workflow span:nth-child(2) {
  animation-name: fit-border-yellow-soft;
}

.fit-workflow span:nth-child(3) {
  animation-name: fit-border-yellow-deep;
}

.fit-workflow span:nth-child(4) {
  overflow: visible;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.6)) padding-box,
    linear-gradient(120deg, rgba(21, 21, 21, 0.11), rgba(21, 21, 21, 0.055), rgba(21, 21, 21, 0.11)) border-box;
  border: 1px solid transparent;
  animation: fit-goal-card var(--fit-cycle) ease-in-out infinite, fit-border-green var(--fit-cycle) ease-in-out infinite;
}

.fit-workflow span:nth-child(4)::after {
  top: -12px;
  right: -13px;
}

body.dark-mode .fit-workflow span {
  background:
    linear-gradient(135deg, rgba(18, 20, 25, 0.9), rgba(18, 20, 25, 0.62)) padding-box,
    linear-gradient(120deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.09)) border-box;
  border-color: transparent;
}

body.dark-mode .fit-workflow span:nth-child(4) {
  animation: fit-goal-card-dark var(--fit-cycle) ease-in-out infinite, fit-border-green-dark var(--fit-cycle) ease-in-out infinite;
}

@keyframes fit-border-gray {
  0%,
  18%,
  100% {
    background:
      linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.6)) padding-box,
      linear-gradient(120deg, rgba(21, 21, 21, 0.11), rgba(21, 21, 21, 0.055), rgba(21, 21, 21, 0.11)) border-box;
  }
  22%,
  34% {
    background:
      linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0.66)) padding-box,
      linear-gradient(120deg, rgba(21, 21, 21, 0.12), rgba(120, 120, 120, 0.28), rgba(21, 21, 21, 0.1)) border-box;
  }
}

@keyframes fit-border-yellow-soft {
  0%,
  30%,
  100% {
    background:
      linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.6)) padding-box,
      linear-gradient(120deg, rgba(21, 21, 21, 0.11), rgba(21, 21, 21, 0.055), rgba(21, 21, 21, 0.11)) border-box;
  }
  36%,
  50% {
    background:
      linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(255, 250, 230, 0.72)) padding-box,
      linear-gradient(120deg, rgba(21, 21, 21, 0.08), rgba(244, 196, 79, 0.7), rgba(21, 21, 21, 0.08)) border-box;
  }
}

@keyframes fit-border-yellow-deep {
  0%,
  44%,
  100% {
    background:
      linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.6)) padding-box,
      linear-gradient(120deg, rgba(21, 21, 21, 0.11), rgba(21, 21, 21, 0.055), rgba(21, 21, 21, 0.11)) border-box;
  }
  52%,
  66% {
    background:
      linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(255, 244, 211, 0.74)) padding-box,
      linear-gradient(120deg, rgba(21, 21, 21, 0.08), rgba(202, 142, 26, 0.72), rgba(244, 196, 79, 0.5)) border-box;
  }
}

@keyframes fit-border-green {
  0%,
  64%,
  100% {
    background:
      linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.6)) padding-box,
      linear-gradient(120deg, rgba(21, 21, 21, 0.11), rgba(21, 21, 21, 0.055), rgba(21, 21, 21, 0.11)) border-box;
  }
  72%,
  88% {
    background:
      radial-gradient(circle at 82% 22%, rgba(255, 255, 255, 0.48), transparent 4rem) padding-box,
      linear-gradient(120deg, rgba(40, 184, 121, 0.3), rgba(40, 184, 121, 0.88), rgba(203, 246, 224, 0.6)) border-box;
  }
}

@keyframes fit-border-green-dark {
  0%,
  64%,
  100% {
    background:
      linear-gradient(135deg, rgba(18, 20, 25, 0.9), rgba(18, 20, 25, 0.62)) padding-box,
      linear-gradient(120deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.09)) border-box;
  }
  72%,
  88% {
    background:
      radial-gradient(circle at 82% 22%, rgba(255, 255, 255, 0.12), transparent 4rem) padding-box,
      linear-gradient(120deg, rgba(40, 184, 121, 0.22), rgba(40, 184, 121, 0.76), rgba(203, 246, 224, 0.22)) border-box;
  }
}

@media (max-width: 680px) {
  .fit-summary {
    padding-right: 22px;
  }

  .fit-workflow {
    padding: 8px 8px 20px;
  }

  .fit-workflow span:not(:last-child)::after {
    right: 50%;
  }
}

/* Fit workflow cleanup: no external bleed, amber progress, green only at finish */
.fit-workflow span,
.fit-workflow span:nth-child(4) {
  overflow: hidden;
}

.fit-workflow span::before {
  inset: 1px;
  border-radius: 9px;
  background:
    linear-gradient(90deg, transparent, rgba(242, 190, 65, 0.2), rgba(255, 235, 165, 0.22), transparent);
  transform: translateX(-100%);
}

.fit-workflow span:not(:last-child)::after {
  background:
    linear-gradient(90deg, rgba(21, 21, 21, 0.12), rgba(242, 190, 65, 0.78), rgba(178, 121, 22, 0.58), rgba(21, 21, 21, 0.12));
  background-size: 220% 100%;
  box-shadow: 0 0 10px rgba(242, 190, 65, 0.16);
}

.fit-workflow span:nth-child(4)::before {
  inset: 1px;
  border-radius: 9px;
  background:
    radial-gradient(circle at 78% 22%, rgba(255, 255, 255, 0.32), transparent 4rem),
    linear-gradient(135deg, rgba(40, 184, 121, 0.2), rgba(40, 184, 121, 0.08));
}

.fit-workflow span:nth-child(4)::after {
  top: 8px;
  right: 8px;
  width: 22px;
  height: 22px;
  box-shadow: 0 0 0 6px rgba(40, 184, 121, 0.1), 0 10px 20px rgba(40, 184, 121, 0.14);
}

body.dark-mode .fit-workflow span::before {
  background:
    linear-gradient(90deg, transparent, rgba(242, 190, 65, 0.15), rgba(255, 235, 165, 0.12), transparent);
}

body.dark-mode .fit-workflow span:not(:last-child)::after {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.09), rgba(242, 190, 65, 0.62), rgba(178, 121, 22, 0.48), rgba(255, 255, 255, 0.09));
}

@media (max-width: 680px) {
  .fit-workflow span:not(:last-child)::after {
    background:
      linear-gradient(180deg, rgba(21, 21, 21, 0.12), rgba(242, 190, 65, 0.78), rgba(178, 121, 22, 0.58), rgba(21, 21, 21, 0.12));
    background-size: 100% 220%;
  }

  body.dark-mode .fit-workflow span:not(:last-child)::after {
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.09), rgba(242, 190, 65, 0.62), rgba(178, 121, 22, 0.48), rgba(255, 255, 255, 0.09));
  }
}

/* Fit workflow border loader: visible travelling shine on the actual border */
@property --fit-angle {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}

.fit-workflow span {
  --fit-angle: 0deg;
  --fit-border-a: rgba(120, 120, 120, 0.42);
  --fit-border-b: rgba(21, 21, 21, 0.16);
  border: 2px solid transparent;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.66)) padding-box,
    conic-gradient(
      from var(--fit-angle),
      rgba(21, 21, 21, 0.1) 0deg 28deg,
      transparent 44deg 92deg,
      var(--fit-border-a) 116deg 150deg,
      var(--fit-border-b) 150deg 176deg,
      transparent 198deg 360deg
    ) border-box;
  animation: fit-border-loader 1.35s linear infinite;
}

.fit-workflow span:nth-child(2) {
  --fit-border-a: rgba(246, 204, 89, 0.92);
  --fit-border-b: rgba(255, 236, 159, 0.8);
}

.fit-workflow span:nth-child(3) {
  --fit-border-a: rgba(207, 143, 25, 0.94);
  --fit-border-b: rgba(246, 204, 89, 0.74);
}

.fit-workflow span:nth-child(4) {
  --fit-border-a: rgba(40, 184, 121, 0.92);
  --fit-border-b: rgba(193, 247, 220, 0.78);
  animation: fit-border-loader 1.35s linear infinite, fit-goal-surface-clean var(--fit-cycle) ease-in-out infinite;
}

.fit-workflow span::before {
  background:
    linear-gradient(90deg, transparent 8%, rgba(246, 204, 89, 0.18), rgba(255, 236, 159, 0.2), transparent 92%);
  animation: fit-step-pass-clean var(--fit-cycle) cubic-bezier(0.65, 0, 0.35, 1) infinite;
}

.fit-workflow span:not(:last-child)::after {
  background:
    linear-gradient(90deg, rgba(21, 21, 21, 0.12), rgba(246, 204, 89, 0.94), rgba(207, 143, 25, 0.68), rgba(21, 21, 21, 0.12));
  background-size: 240% 100%;
}

body.dark-mode .fit-workflow span {
  background:
    linear-gradient(135deg, rgba(18, 20, 25, 0.94), rgba(18, 20, 25, 0.68)) padding-box,
    conic-gradient(
      from var(--fit-angle),
      rgba(255, 255, 255, 0.08) 0deg 28deg,
      transparent 44deg 92deg,
      var(--fit-border-a) 116deg 150deg,
      var(--fit-border-b) 150deg 176deg,
      transparent 198deg 360deg
    ) border-box;
}

body.dark-mode .fit-workflow span:nth-child(4) {
  animation: fit-border-loader 1.35s linear infinite, fit-goal-surface-clean-dark var(--fit-cycle) ease-in-out infinite;
}

@keyframes fit-border-loader {
  to {
    --fit-angle: 360deg;
  }
}

@keyframes fit-step-pass-clean {
  0%,
  15%,
  100% {
    opacity: 0;
    transform: translateX(-100%);
  }
  25%,
  34% {
    opacity: 1;
    transform: translateX(0);
  }
  48% {
    opacity: 0;
    transform: translateX(100%);
  }
}

@keyframes fit-goal-surface-clean {
  0%,
  66%,
  100% {
    color: var(--ink);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.88), 0 12px 28px rgba(15, 23, 42, 0.035);
  }
  74%,
  90% {
    color: #0d251a;
    box-shadow:
      0 18px 42px rgba(40, 184, 121, 0.14),
      inset 0 1px 0 rgba(255, 255, 255, 0.9);
  }
}

@keyframes fit-goal-surface-clean-dark {
  0%,
  66%,
  100% {
    color: rgba(247, 247, 248, 0.9);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 16px 38px rgba(0, 0, 0, 0.14);
  }
  74%,
  90% {
    color: #eafff4;
    box-shadow:
      0 18px 42px rgba(40, 184, 121, 0.1),
      inset 0 1px 0 rgba(255, 255, 255, 0.08);
  }
}

@media (max-width: 680px) {
  .fit-workflow span:not(:last-child)::after {
    background:
      linear-gradient(180deg, rgba(21, 21, 21, 0.12), rgba(246, 204, 89, 0.94), rgba(207, 143, 25, 0.68), rgba(21, 21, 21, 0.12));
    background-size: 100% 240%;
  }
}

/* Fit workflow final: clipped gray border pulse, no yellow wash */
.fit-workflow span,
.fit-workflow span:nth-child(4) {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(21, 21, 21, 0.1);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.68)),
    rgba(255, 255, 255, 0.7);
  animation: none;
}

.fit-workflow span::before,
.fit-workflow span:nth-child(4)::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  padding: 2px;
  border-radius: inherit;
  background:
    conic-gradient(
      from 0deg,
      transparent 0deg 58deg,
      rgba(118, 118, 118, 0.18) 76deg,
      rgba(58, 58, 58, 0.78) 96deg,
      rgba(180, 180, 180, 0.22) 118deg,
      transparent 138deg 360deg
    );
  opacity: 0;
  transform: rotate(0deg);
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  mask-composite: exclude;
  animation: fit-gray-ring var(--fit-cycle) linear infinite;
}

.fit-workflow span:nth-child(1)::before {
  animation-delay: 0s;
}

.fit-workflow span:nth-child(2)::before {
  animation-delay: 0.85s;
}

.fit-workflow span:nth-child(3)::before {
  animation-delay: 1.7s;
}

.fit-workflow span:nth-child(4)::before {
  background:
    conic-gradient(
      from 0deg,
      transparent 0deg 58deg,
      rgba(40, 184, 121, 0.18) 76deg,
      rgba(40, 184, 121, 0.9) 98deg,
      rgba(188, 247, 218, 0.34) 122deg,
      transparent 146deg 360deg
    );
  animation-delay: 2.55s;
}

.fit-workflow span:not(:last-child)::after {
  background:
    linear-gradient(90deg, rgba(21, 21, 21, 0.1), rgba(118, 118, 118, 0.7), rgba(21, 21, 21, 0.1));
  background-size: 220% 100%;
  box-shadow: 0 0 10px rgba(80, 80, 80, 0.12);
}

.fit-workflow span:nth-child(4) {
  color: var(--ink);
  border-color: rgba(21, 21, 21, 0.1);
  animation: fit-green-state var(--fit-cycle) ease-in-out infinite;
}

.fit-workflow span:nth-child(4)::after {
  top: 8px;
  right: 8px;
  width: 22px;
  height: 22px;
  opacity: 0;
  transform: scale(0.72);
  animation: fit-goal-check var(--fit-cycle) ease-in-out infinite;
}

body.dark-mode .fit-workflow span,
body.dark-mode .fit-workflow span:nth-child(4) {
  color: rgba(247, 247, 248, 0.9);
  border-color: rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(135deg, rgba(18, 20, 25, 0.94), rgba(18, 20, 25, 0.68)),
    rgba(18, 20, 25, 0.72);
}

body.dark-mode .fit-workflow span::before {
  background:
    conic-gradient(
      from 0deg,
      transparent 0deg 58deg,
      rgba(255, 255, 255, 0.12) 76deg,
      rgba(255, 255, 255, 0.58) 96deg,
      rgba(255, 255, 255, 0.18) 118deg,
      transparent 138deg 360deg
    );
}

body.dark-mode .fit-workflow span:nth-child(4)::before {
  background:
    conic-gradient(
      from 0deg,
      transparent 0deg 58deg,
      rgba(40, 184, 121, 0.16) 76deg,
      rgba(40, 184, 121, 0.78) 98deg,
      rgba(188, 247, 218, 0.24) 122deg,
      transparent 146deg 360deg
    );
}

body.dark-mode .fit-workflow span:not(:last-child)::after {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.46), rgba(255, 255, 255, 0.08));
}

body.dark-mode .fit-workflow span:nth-child(4) {
  animation: fit-green-state-dark var(--fit-cycle) ease-in-out infinite;
}

@keyframes fit-gray-ring {
  0%,
  13%,
  100% {
    opacity: 0;
    transform: rotate(0deg);
  }
  18% {
    opacity: 1;
  }
  34% {
    opacity: 1;
    transform: rotate(360deg);
  }
  42% {
    opacity: 0;
    transform: rotate(430deg);
  }
}

@keyframes fit-green-state {
  0%,
  66%,
  100% {
    color: var(--ink);
    border-color: rgba(21, 21, 21, 0.1);
    background:
      linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.68)),
      rgba(255, 255, 255, 0.7);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.88), 0 12px 28px rgba(15, 23, 42, 0.035);
  }
  74%,
  90% {
    color: #0d251a;
    border-color: rgba(40, 184, 121, 0.22);
    background:
      radial-gradient(circle at 82% 22%, rgba(255, 255, 255, 0.42), transparent 4rem),
      linear-gradient(135deg, rgba(40, 184, 121, 0.22), rgba(40, 184, 121, 0.1)),
      rgba(255, 255, 255, 0.76);
    box-shadow:
      0 18px 42px rgba(40, 184, 121, 0.12),
      inset 0 1px 0 rgba(255, 255, 255, 0.9);
  }
}

@keyframes fit-green-state-dark {
  0%,
  66%,
  100% {
    color: rgba(247, 247, 248, 0.9);
    border-color: rgba(255, 255, 255, 0.08);
    background:
      linear-gradient(135deg, rgba(18, 20, 25, 0.94), rgba(18, 20, 25, 0.68)),
      rgba(18, 20, 25, 0.72);
  }
  74%,
  90% {
    color: #eafff4;
    border-color: rgba(40, 184, 121, 0.24);
    background:
      radial-gradient(circle at 82% 22%, rgba(255, 255, 255, 0.12), transparent 4rem),
      linear-gradient(135deg, rgba(40, 184, 121, 0.18), rgba(40, 184, 121, 0.07)),
      rgba(18, 20, 25, 0.76);
  }
}

@media (max-width: 680px) {
  .fit-workflow span:not(:last-child)::after {
    background:
      linear-gradient(180deg, rgba(21, 21, 21, 0.1), rgba(118, 118, 118, 0.7), rgba(21, 21, 21, 0.1));
    background-size: 100% 220%;
  }
}

/* Fit workflow final-final: straight border shine, no circular motion */
.fit-workflow {
  --fit-cycle: 4.8s;
}

.fit-workflow span,
.fit-workflow span:nth-child(4),
body.dark-mode .fit-workflow span,
body.dark-mode .fit-workflow span:nth-child(4) {
  overflow: hidden;
  border: 1px solid transparent;
  animation: none;
}

.fit-workflow span {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.68)) padding-box,
    linear-gradient(90deg, rgba(21, 21, 21, 0.12), rgba(21, 21, 21, 0.12)) border-box;
}

.fit-workflow span::before,
.fit-workflow span:nth-child(4)::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  padding: 2px;
  border-radius: inherit;
  background:
    linear-gradient(90deg, transparent 0%, transparent 24%, rgba(48, 48, 48, 0.72) 48%, rgba(176, 176, 176, 0.52) 54%, transparent 76%, transparent 100%);
  background-size: 260% 100%;
  opacity: 0;
  transform: none;
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  mask-composite: exclude;
  animation: fit-border-sweep var(--fit-cycle) ease-in-out infinite;
}

.fit-workflow span:nth-child(1)::before {
  animation-delay: 0s;
}

.fit-workflow span:nth-child(2)::before {
  animation-delay: 0.85s;
}

.fit-workflow span:nth-child(3)::before {
  animation-delay: 1.7s;
}

.fit-workflow span:nth-child(4)::before {
  background:
    linear-gradient(90deg, transparent 0%, transparent 24%, rgba(40, 184, 121, 0.78) 48%, rgba(193, 247, 220, 0.62) 54%, transparent 76%, transparent 100%);
  background-size: 260% 100%;
  animation-delay: 2.55s;
}

.fit-workflow span:not(:last-child)::after {
  background:
    linear-gradient(90deg, rgba(21, 21, 21, 0.1), rgba(118, 118, 118, 0.7), rgba(21, 21, 21, 0.1));
  background-size: 220% 100%;
}

.fit-workflow span:nth-child(4) {
  animation: fit-green-state var(--fit-cycle) ease-in-out infinite;
}

body.dark-mode .fit-workflow span {
  background:
    linear-gradient(135deg, rgba(18, 20, 25, 0.94), rgba(18, 20, 25, 0.68)) padding-box,
    linear-gradient(90deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.09)) border-box;
}

body.dark-mode .fit-workflow span::before {
  background:
    linear-gradient(90deg, transparent 0%, transparent 24%, rgba(255, 255, 255, 0.6) 48%, rgba(255, 255, 255, 0.22) 54%, transparent 76%, transparent 100%);
  background-size: 260% 100%;
}

body.dark-mode .fit-workflow span:nth-child(4) {
  animation: fit-green-state-dark var(--fit-cycle) ease-in-out infinite;
}

body.dark-mode .fit-workflow span:nth-child(4)::before {
  background:
    linear-gradient(90deg, transparent 0%, transparent 24%, rgba(40, 184, 121, 0.78) 48%, rgba(193, 247, 220, 0.28) 54%, transparent 76%, transparent 100%);
  background-size: 260% 100%;
}

@keyframes fit-border-sweep {
  0%,
  12%,
  100% {
    opacity: 0;
    background-position: 125% 50%;
  }
  18% {
    opacity: 1;
  }
  36% {
    opacity: 1;
    background-position: -25% 50%;
  }
  44% {
    opacity: 0;
    background-position: -35% 50%;
  }
}

/* Final scorecard + article polish */
.scorecard-main {
  position: relative;
}

.scorecard-main.has-scroll::after {
  content: "Scroll for more";
  position: sticky;
  bottom: -1px;
  z-index: 6;
  display: flex;
  height: 54px;
  align-items: flex-end;
  justify-content: center;
  margin: 10px calc(clamp(24px, 4vw, 44px) * -1) calc(clamp(24px, 4vw, 44px) * -1);
  padding-bottom: 12px;
  color: var(--red);
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.96) 62%);
  font-size: 0.72rem;
  font-weight: 850;
  pointer-events: none;
  text-transform: uppercase;
}

.scorecard-main.has-scroll.is-at-bottom::after {
  opacity: 0;
}

body.dark-mode .scorecard-main.has-scroll::after {
  background: linear-gradient(180deg, transparent, rgba(11, 13, 16, 0.97) 62%);
}

.scorecard-kicker {
  color: var(--red);
  border-color: rgba(0, 191, 255, 0.18);
  background: var(--red-soft);
}

.scorecard-progress span.is-active {
  color: #ffffff;
  border-color: rgba(0, 191, 255, 0.85);
  background: var(--red);
}

body.dark-mode .scorecard-progress span.is-active {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.1);
  background: linear-gradient(135deg, rgba(0, 191, 255, 0.95), rgba(29, 78, 216, 0.82));
}

.field-block textarea:focus,
.field-block input:focus,
.field-block select:focus {
  outline-color: rgba(0, 191, 255, 0.28);
}

.choice-group input {
  accent-color: var(--red);
}

body.dark-mode .choice-group input {
  accent-color: #7DD3FC;
}

.choice-group label:has(input:checked) {
  border-color: rgba(0, 191, 255, 0.22);
  background:
    linear-gradient(135deg, rgba(0, 191, 255, 0.065), rgba(0, 191, 255, 0.025)),
    var(--paper-strong);
}

.scorecard-next,
.scorecard-submit {
  color: #ffffff !important;
  border-color: var(--red) !important;
  background: var(--red) !important;
}

body.dark-mode .scorecard-next,
body.dark-mode .scorecard-submit {
  color: #ffffff !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
  background: linear-gradient(135deg, rgba(0, 191, 255, 0.95), rgba(29, 78, 216, 0.84)) !important;
}

.score-meter span {
  background: linear-gradient(90deg, var(--red), #7DD3FC);
}

body.dark-mode .score-meter span {
  background: linear-gradient(90deg, #7DD3FC, #ff9a9d);
}

.scorecard-preview {
  background:
    radial-gradient(circle at 84% 0%, rgba(0, 191, 255, 0.075), transparent 15rem),
    linear-gradient(rgba(8, 9, 10, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(8, 9, 10, 0.035) 1px, transparent 1px),
    rgba(8, 9, 10, 0.025);
}

body.dark-mode .scorecard-preview {
  background:
    radial-gradient(circle at 84% 0%, rgba(0, 191, 255, 0.12), transparent 15rem),
    linear-gradient(rgba(255, 255, 255, 0.042) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.042) 1px, transparent 1px),
    rgba(255, 255, 255, 0.03);
}

.recent-post:hover {
  transform: none;
  border-color: rgba(0, 191, 255, 0.18);
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.055);
}

.recent-post-feature,
body.dark-mode .recent-post-feature {
  background:
    radial-gradient(circle at 16% 18%, rgba(0, 191, 255, 0.08), transparent 16rem),
    linear-gradient(135deg, rgba(255, 255, 255, 0.76), rgba(255, 255, 255, 0.48)),
    rgba(255, 255, 255, 0.66);
}

body.dark-mode .recent-post-feature {
  background:
    radial-gradient(circle at 16% 18%, rgba(0, 191, 255, 0.1), transparent 16rem),
    linear-gradient(135deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.02)),
    rgba(255, 255, 255, 0.035);
}

.recent-post-feature::before,
.recent-post-feature::after {
  background: rgba(255, 255, 255, 0.14);
}

@media (max-width: 680px) {
  .scorecard-main.has-scroll::after {
    margin-right: -18px;
    margin-bottom: -18px;
    margin-left: -18px;
  }
}

/* Best Fit workflow: larger nodes, synced indicators, visible connectors */
.fit-summary {
  grid-template-rows: minmax(176px, auto) auto;
}

.fit-workflow {
  --fit-cycle: 4.8s;
  align-items: stretch;
  gap: 28px;
  padding: 18px 8px 16px;
}

.fit-workflow span,
.fit-workflow span:nth-child(4),
body.dark-mode .fit-workflow span,
body.dark-mode .fit-workflow span:nth-child(4) {
  display: grid;
  min-height: 92px;
  align-content: center;
  justify-items: start;
  gap: 10px;
  padding: 18px 20px;
  overflow: visible;
  border-radius: 18px;
  font-family: var(--gh-font-body, Manrope, ui-sans-serif, system-ui, sans-serif);
  text-align: left;
}

.fit-workflow span {
  border: 1px solid rgba(21, 21, 21, 0.1);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.68)),
    rgba(255, 255, 255, 0.74);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 14px 32px rgba(15, 23, 42, 0.045);
}

.fit-workflow span small {
  position: relative;
  z-index: 2;
  display: inline-grid;
  min-width: 34px;
  height: 26px;
  place-items: center;
  border: 1px solid rgba(21, 21, 21, 0.09);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.64);
  font-family: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.68rem;
  font-weight: 850;
  line-height: 1;
  animation: fit-index-pulse var(--fit-cycle) ease-in-out infinite;
}

.fit-workflow span em {
  position: relative;
  z-index: 2;
  color: var(--ink);
  font-size: clamp(0.98rem, 1.05vw, 1.16rem);
  font-style: normal;
  font-weight: 760;
  letter-spacing: -0.01em;
  line-height: 1.1;
}

.fit-workflow span::before,
.fit-workflow span:nth-child(4)::before {
  inset: 0;
  z-index: 1;
  padding: 2px;
  border-radius: inherit;
  background:
    linear-gradient(90deg, transparent 0%, transparent 28%, rgba(68, 68, 68, 0.76) 48%, rgba(190, 190, 190, 0.58) 55%, transparent 76%, transparent 100%);
  background-size: 260% 100%;
  animation: fit-border-sweep var(--fit-cycle) ease-in-out infinite;
}

.fit-workflow span:nth-child(1)::before,
.fit-workflow span:nth-child(1) small {
  animation-delay: 0s;
}

.fit-workflow span:nth-child(2)::before,
.fit-workflow span:nth-child(2) small {
  animation-delay: 0.85s;
}

.fit-workflow span:nth-child(3)::before,
.fit-workflow span:nth-child(3) small {
  animation-delay: 1.7s;
}

.fit-workflow span:nth-child(4)::before,
.fit-workflow span:nth-child(4) small {
  animation-delay: 2.55s;
}

.fit-workflow span:nth-child(-n + 3)::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -31px;
  z-index: 4;
  width: 34px;
  height: 3px;
  border-radius: 999px;
  background:
    linear-gradient(90deg, rgba(21, 21, 21, 0.1), rgba(80, 80, 80, 0.72), rgba(21, 21, 21, 0.1));
  background-size: 240% 100%;
  box-shadow: 0 0 16px rgba(80, 80, 80, 0.12);
  opacity: 0.32;
  transform: translateY(-50%) scaleX(0.72);
  transform-origin: left center;
  animation: fit-connector-flow var(--fit-cycle) ease-in-out infinite;
}

.fit-workflow span:nth-child(1)::after {
  animation-delay: 0.54s;
}

.fit-workflow span:nth-child(2)::after {
  animation-delay: 1.39s;
}

.fit-workflow span:nth-child(3)::after {
  animation-delay: 2.24s;
}

.fit-workflow span:nth-child(4) {
  animation: fit-green-state var(--fit-cycle) ease-in-out infinite;
}

.fit-workflow span:nth-child(4)::after {
  top: 12px;
  right: 12px;
  z-index: 5;
}

body.dark-mode .fit-workflow span {
  border-color: rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(135deg, rgba(18, 20, 25, 0.94), rgba(18, 20, 25, 0.68)),
    rgba(18, 20, 25, 0.72);
}

body.dark-mode .fit-workflow span small {
  border-color: rgba(255, 255, 255, 0.08);
  color: rgba(247, 247, 248, 0.68);
  background: rgba(255, 255, 255, 0.055);
}

body.dark-mode .fit-workflow span:nth-child(-n + 3)::after {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.08));
}

@keyframes fit-index-pulse {
  0%,
  14%,
  100% {
    color: var(--muted);
    border-color: rgba(21, 21, 21, 0.09);
    background: rgba(255, 255, 255, 0.64);
    transform: translateY(0);
  }
  21%,
  34% {
    color: #ffffff;
    border-color: var(--red);
    background: var(--red);
    transform: translateY(-2px);
  }
}

@keyframes fit-connector-flow {
  0%,
  15%,
  100% {
    opacity: 0.2;
    background-position: 0% 50%;
    transform: translateY(-50%) scaleX(0.66);
  }
  25%,
  42% {
    opacity: 1;
    background-position: 100% 50%;
    transform: translateY(-50%) scaleX(1);
  }
  54% {
    opacity: 0.25;
    transform: translateY(-50%) scaleX(0.72);
  }
}

@media (max-width: 900px) {
  .fit-workflow {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .fit-workflow span:nth-child(2)::after {
    display: none;
  }
}

@media (max-width: 680px) {
  .fit-workflow {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .fit-workflow span,
  .fit-workflow span:nth-child(4),
  body.dark-mode .fit-workflow span,
  body.dark-mode .fit-workflow span:nth-child(4) {
    min-height: 84px;
  }

  .fit-workflow span:nth-child(-n + 3)::after {
    top: auto;
    right: 50%;
    bottom: -24px;
    width: 3px;
    height: 24px;
    transform: translateX(50%) scaleY(0.66);
    transform-origin: top center;
    background:
      linear-gradient(180deg, rgba(21, 21, 21, 0.1), rgba(80, 80, 80, 0.72), rgba(21, 21, 21, 0.1));
    background-size: 100% 240%;
    animation-name: fit-connector-flow-mobile;
  }
}

@keyframes fit-connector-flow-mobile {
  0%,
  15%,
  100% {
    opacity: 0.2;
    background-position: 50% 0%;
    transform: translateX(50%) scaleY(0.66);
  }
  25%,
  42% {
    opacity: 1;
    background-position: 50% 100%;
    transform: translateX(50%) scaleY(1);
  }
  54% {
    opacity: 0.25;
    transform: translateX(50%) scaleY(0.72);
  }
}

/* Final sync pass: Best Fit sequence, CTA win effect, scroll cues */
.fit-workflow {
  --fit-cycle: 6.8s;
}

.fit-workflow span small,
.fit-workflow span::before,
.fit-workflow span:nth-child(-n + 3)::after,
.fit-workflow span:nth-child(4),
.fit-workflow span:nth-child(4)::after {
  animation-duration: var(--fit-cycle);
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
}

.fit-workflow span:nth-child(1) small,
.fit-workflow span:nth-child(1)::before {
  animation-delay: 0s;
}

.fit-workflow span:nth-child(1)::after {
  animation-delay: 0.72s;
}

.fit-workflow span:nth-child(2) small,
.fit-workflow span:nth-child(2)::before {
  animation-delay: 1.05s;
}

.fit-workflow span:nth-child(2)::after {
  animation-delay: 1.77s;
}

.fit-workflow span:nth-child(3) small,
.fit-workflow span:nth-child(3)::before {
  animation-delay: 2.1s;
}

.fit-workflow span:nth-child(3)::after {
  animation-delay: 2.82s;
}

.fit-workflow span:nth-child(4) small,
.fit-workflow span:nth-child(4)::before {
  animation-delay: 3.15s;
}

.fit-workflow span:nth-child(1)::before {
  animation-delay: 0.24s;
}

.fit-workflow span:nth-child(2)::before {
  animation-delay: 1.29s;
}

.fit-workflow span:nth-child(3)::before {
  animation-delay: 2.34s;
}

.fit-workflow span:nth-child(4)::before {
  animation-delay: 3.39s;
}

.fit-workflow span:nth-child(4) {
  animation-name: fit-green-state-synced;
  animation-delay: 0s;
}

.fit-workflow span:nth-child(4)::after {
  animation-name: fit-goal-check-synced;
  animation-delay: 0s;
}

body.dark-mode .fit-workflow span:nth-child(4) {
  animation-name: fit-green-state-synced-dark;
}

@keyframes fit-index-pulse {
  0%,
  8%,
  19%,
  100% {
    color: var(--muted);
    border-color: rgba(21, 21, 21, 0.09);
    background: rgba(255, 255, 255, 0.64);
    transform: translateY(0);
  }
  10%,
  17% {
    color: #ffffff;
    border-color: var(--red);
    background: var(--red);
    transform: translateY(-2px);
  }
}

@keyframes fit-border-sweep {
  0%,
  9%,
  19%,
  100% {
    opacity: 0;
    background-position: 125% 50%;
  }
  10% {
    opacity: 1;
  }
  17% {
    opacity: 1;
    background-position: -25% 50%;
  }
}

@keyframes fit-connector-flow {
  0%,
  9%,
  22%,
  100% {
    opacity: 0;
    background-position: 0% 50%;
    transform: translateY(-50%) scaleX(0);
  }
  11% {
    opacity: 1;
    transform: translateY(-50%) scaleX(0.2);
  }
  18% {
    opacity: 1;
    background-position: 100% 50%;
    transform: translateY(-50%) scaleX(1);
  }
}

@keyframes fit-connector-flow-mobile {
  0%,
  9%,
  22%,
  100% {
    opacity: 0;
    background-position: 50% 0%;
    transform: translateX(50%) scaleY(0);
  }
  11% {
    opacity: 1;
    transform: translateX(50%) scaleY(0.2);
  }
  18% {
    opacity: 1;
    background-position: 50% 100%;
    transform: translateX(50%) scaleY(1);
  }
}

@keyframes fit-green-state-synced {
  0%,
  53%,
  92%,
  100% {
    color: var(--ink);
    border-color: rgba(21, 21, 21, 0.1);
    background:
      linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.68)),
      rgba(255, 255, 255, 0.7);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.88), 0 12px 28px rgba(15, 23, 42, 0.035);
  }
  58%,
  70% {
    color: #0d251a;
    border-color: rgba(40, 184, 121, 0.22);
    background:
      radial-gradient(circle at 82% 22%, rgba(255, 255, 255, 0.42), transparent 4rem),
      linear-gradient(135deg, rgba(40, 184, 121, 0.22), rgba(40, 184, 121, 0.1)),
      rgba(255, 255, 255, 0.76);
    box-shadow:
      0 18px 42px rgba(40, 184, 121, 0.12),
      inset 0 1px 0 rgba(255, 255, 255, 0.9);
  }
}

@keyframes fit-green-state-synced-dark {
  0%,
  53%,
  92%,
  100% {
    color: rgba(247, 247, 248, 0.9);
    border-color: rgba(255, 255, 255, 0.08);
    background:
      linear-gradient(135deg, rgba(18, 20, 25, 0.94), rgba(18, 20, 25, 0.68)),
      rgba(18, 20, 25, 0.72);
  }
  58%,
  70% {
    color: #eafff4;
    border-color: rgba(40, 184, 121, 0.24);
    background:
      radial-gradient(circle at 82% 22%, rgba(255, 255, 255, 0.12), transparent 4rem),
      linear-gradient(135deg, rgba(40, 184, 121, 0.18), rgba(40, 184, 121, 0.07)),
      rgba(18, 20, 25, 0.76);
  }
}

@keyframes fit-goal-check-synced {
  0%,
  55%,
  91%,
  100% {
    opacity: 0;
    transform: scale(0.72);
  }
  60%,
  72% {
    opacity: 1;
    transform: scale(1);
  }
}

.scorecard-next,
.scorecard-submit,
body.dark-mode .scorecard-next,
body.dark-mode .scorecard-submit {
  color: #ffffff !important;
  border-color: rgba(0, 191, 255, 0.28) !important;
  background: #08090a !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 12px 28px rgba(0, 191, 255, 0.1);
}

body.dark-mode .scorecard-next,
body.dark-mode .scorecard-submit {
  background: #f6f7f8 !important;
  color: #08090a !important;
}

.scorecard-progress span.is-active {
  color: #ffffff;
  border-color: rgba(0, 191, 255, 0.42);
  background: #08090a;
  box-shadow: inset 3px 0 0 var(--red), 0 10px 24px rgba(0, 191, 255, 0.1);
}

body.dark-mode .scorecard-progress span.is-active {
  color: #08090a;
  border-color: rgba(0, 191, 255, 0.36);
  background: #f6f7f8;
  box-shadow: inset 3px 0 0 #38BDF8;
}

.scorecard-main.has-scroll::after {
  bottom: 0;
  height: 76px;
  align-items: flex-end;
  margin: 0 calc(clamp(24px, 4vw, 44px) * -1) calc(clamp(24px, 4vw, 44px) * -1);
  padding-bottom: 16px;
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.98) 58%, rgba(255, 255, 255, 1));
}

body.dark-mode .scorecard-main.has-scroll::after {
  background: linear-gradient(180deg, transparent, rgba(11, 13, 16, 0.98) 58%, rgba(11, 13, 16, 1));
}

.toc-card.is-at-bottom .toc-list::after {
  display: none;
}

.toc-card .toc-list::before {
  content: "";
  display: none;
}

.toc-card.is-at-bottom .toc-list::before {
  content: "Scroll up";
  position: sticky;
  top: 0;
  z-index: 2;
  display: block;
  padding: 0 0 8px;
  color: var(--faint);
  background: linear-gradient(0deg, transparent, var(--paper-strong) 45%, var(--paper-strong));
  font-family: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.66rem;
  font-weight: 700;
  text-transform: uppercase;
}

.header-cta,
.button-primary {
  isolation: isolate;
}

.header-cta::before,
.button-primary::before {
  content: "";
  position: absolute;
  inset: -2px;
  z-index: -1;
  border-radius: inherit;
  opacity: 0;
  background:
    linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.8) 48%, transparent 62%) border-box,
    linear-gradient(135deg, var(--red), #BAE6FD) border-box;
  background-size: 240% 100%, 100% 100%;
  transition: opacity 180ms ease;
}

.header-cta:hover::before,
.button-primary:hover::before {
  opacity: 1;
  animation: ctaBorderWin 900ms ease-out;
}

.header-cta:hover,
.button-primary:hover {
  box-shadow:
    0 0 0 6px rgba(0, 191, 255, 0.08),
    0 18px 44px rgba(0, 191, 255, 0.2),
    14px -14px 0 -8px rgba(0, 191, 255, 0.42),
    -16px 12px 0 -10px rgba(21, 21, 21, 0.18),
    22px 14px 0 -13px rgba(0, 191, 255, 0.24);
}

@keyframes ctaBorderWin {
  0% {
    background-position: 140% 50%, 0 0;
  }
  100% {
    background-position: -80% 50%, 0 0;
  }
}

.back-to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 70;
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 1px solid rgba(21, 21, 21, 0.1);
  border-radius: 999px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--glass-shadow);
  -webkit-backdrop-filter: blur(18px) saturate(145%);
  backdrop-filter: blur(18px) saturate(145%);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px) scale(0.94);
  transition: opacity 180ms ease, transform 180ms ease, border-color 180ms ease;
}

.back-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.back-to-top:hover {
  color: #ffffff;
  border-color: rgba(0, 191, 255, 0.22);
  background: var(--red);
}

body.dark-mode .back-to-top {
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(18, 20, 25, 0.72);
}

@media (max-width: 680px) {
  .back-to-top {
    right: 14px;
    bottom: 14px;
    width: 42px;
    height: 42px;
  }
}

/* Last-pass Best Fit workflow: cumulative completion animation */
.fit-workflow {
  --fit-cycle: 6.2s;
  --fit-idle-bg: linear-gradient(135deg, rgba(255,255,255,0.98), rgba(255,255,255,0.74)), rgba(255,255,255,0.78);
  --fit-active-bg: linear-gradient(135deg, rgba(250,250,250,1), rgba(238,238,238,0.72)), rgba(255,255,255,0.86);
  --fit-done-bg: radial-gradient(circle at 82% 22%, rgba(255,255,255,0.42), transparent 4rem), linear-gradient(135deg, rgba(40,184,121,0.24), rgba(40,184,121,0.1)), rgba(255,255,255,0.82);
  --fit-idle-border: rgba(21, 21, 21, 0.1);
  --fit-active-border: rgba(21, 21, 21, 0.2);
  --fit-done-border: rgba(40, 184, 121, 0.26);
  --fit-index-bg: rgba(255,255,255,0.64);
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px;
  align-items: stretch;
  padding: 18px 10px 16px;
}

.fit-workflow span,
.fit-workflow span:nth-child(4),
body.dark-mode .fit-workflow span,
body.dark-mode .fit-workflow span:nth-child(4) {
  min-height: 116px;
  padding: 22px;
  overflow: visible;
  border: 1px solid var(--fit-idle-border);
  border-radius: 20px;
  background: var(--fit-idle-bg);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92), 0 14px 32px rgba(15, 23, 42, 0.045);
  animation: none;
}

.fit-workflow span small {
  width: 44px;
  height: 32px;
  border-radius: 999px;
  font-size: 0.8rem;
  animation: none;
}

.fit-workflow span em {
  font-size: clamp(1.08rem, 1.25vw, 1.32rem);
  font-weight: 780;
}

.fit-workflow span::before,
.fit-workflow span:nth-child(4)::before {
  content: "";
  position: absolute;
  inset: -2px;
  z-index: 0;
  padding: 2px;
  border-radius: inherit;
  opacity: 0;
  background:
    linear-gradient(90deg, transparent 0%, rgba(70, 70, 70, 0.9) 48%, rgba(205, 205, 205, 0.72) 55%, transparent 72%);
  background-size: 240% 100%;
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  mask-composite: exclude;
  animation: none;
}

.fit-workflow span:nth-child(-n + 3)::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -33px;
  z-index: 5;
  width: 34px;
  height: 3px;
  border-radius: 999px;
  opacity: 0;
  background: linear-gradient(90deg, rgba(21, 21, 21, 0.14), rgba(90, 90, 90, 0.82), rgba(21, 21, 21, 0.14));
  transform: translateY(-50%) scaleX(0);
  transform-origin: left center;
  animation: none;
}

.fit-workflow.is-animating span:nth-child(1) {
  animation: fitCardOne var(--fit-cycle) linear both;
}

.fit-workflow.is-animating span:nth-child(2) {
  animation: fitCardTwo var(--fit-cycle) linear both;
}

.fit-workflow.is-animating span:nth-child(3) {
  animation: fitCardThree var(--fit-cycle) linear both;
}

.fit-workflow.is-animating span:nth-child(4) {
  animation: fitCardFour var(--fit-cycle) linear both;
}

.fit-workflow.is-animating span:nth-child(1) small {
  animation: fitIndexOne var(--fit-cycle) linear both;
}

.fit-workflow.is-animating span:nth-child(2) small {
  animation: fitIndexTwo var(--fit-cycle) linear both;
}

.fit-workflow.is-animating span:nth-child(3) small {
  animation: fitIndexThree var(--fit-cycle) linear both;
}

.fit-workflow.is-animating span:nth-child(4) small {
  animation: fitIndexFour var(--fit-cycle) linear both;
}

.fit-workflow.is-animating span:nth-child(1)::before {
  animation: fitBorderSweepOne var(--fit-cycle) linear both;
}

.fit-workflow.is-animating span:nth-child(2)::before {
  animation: fitBorderSweepTwo var(--fit-cycle) linear both;
}

.fit-workflow.is-animating span:nth-child(3)::before {
  animation: fitBorderSweepThree var(--fit-cycle) linear both;
}

.fit-workflow.is-animating span:nth-child(4)::before {
  background:
    linear-gradient(90deg, transparent 0%, rgba(40, 184, 121, 0.92) 48%, rgba(193, 247, 220, 0.72) 55%, transparent 72%);
  background-size: 240% 100%;
  animation: fitBorderSweepFour var(--fit-cycle) linear both;
}

.fit-workflow.is-animating span:nth-child(1)::after {
  animation: fitConnectorOne var(--fit-cycle) linear both;
}

.fit-workflow.is-animating span:nth-child(2)::after {
  animation: fitConnectorTwo var(--fit-cycle) linear both;
}

.fit-workflow.is-animating span:nth-child(3)::after {
  animation: fitConnectorThree var(--fit-cycle) linear both;
}

.fit-workflow span:nth-child(4)::after {
  top: 14px;
  right: 14px;
  opacity: 0;
  animation: none;
}

.fit-workflow.is-animating span:nth-child(4)::after {
  animation: fitCheckFinal var(--fit-cycle) linear both;
}

body.dark-mode .fit-workflow span,
body.dark-mode .fit-workflow span:nth-child(4) {
  --fit-idle-bg: linear-gradient(135deg, rgba(18, 20, 25, 0.94), rgba(18, 20, 25, 0.7)), rgba(18, 20, 25, 0.74);
  --fit-active-bg: linear-gradient(135deg, rgba(24, 27, 33, 0.96), rgba(18, 20, 25, 0.78)), rgba(18, 20, 25, 0.82);
  --fit-done-bg: radial-gradient(circle at 82% 22%, rgba(255,255,255,0.08), transparent 4rem), linear-gradient(135deg, rgba(40,184,121,0.22), rgba(40,184,121,0.1)), rgba(18, 20, 25, 0.86);
  --fit-idle-border: rgba(255, 255, 255, 0.08);
  --fit-active-border: rgba(255, 255, 255, 0.2);
  --fit-done-border: rgba(78, 220, 151, 0.32);
  --fit-index-bg: rgba(255,255,255,0.06);
  border-color: var(--fit-idle-border);
  background: var(--fit-idle-bg);
}

@keyframes fitCardOne {
  0%, 7% { border-color: var(--fit-idle-border); background: var(--fit-idle-bg); }
  10%, 100% { border-color: var(--fit-active-border); background: var(--fit-active-bg); }
}

@keyframes fitCardTwo {
  0%, 27% { border-color: var(--fit-idle-border); background: var(--fit-idle-bg); }
  30%, 100% { border-color: var(--fit-active-border); background: var(--fit-active-bg); }
}

@keyframes fitCardThree {
  0%, 47% { border-color: var(--fit-idle-border); background: var(--fit-idle-bg); }
  50%, 100% { border-color: var(--fit-active-border); background: var(--fit-active-bg); }
}

@keyframes fitCardFour {
  0%, 67% { color: var(--ink); border-color: var(--fit-idle-border); background: var(--fit-idle-bg); }
  70%, 100% { color: #0d251a; border-color: var(--fit-done-border); background: var(--fit-done-bg); box-shadow: 0 18px 42px rgba(40,184,121,0.12), inset 0 1px 0 rgba(255,255,255,0.9); }
}

@keyframes fitIndexOne { 0%, 7% { color: var(--muted); background: var(--fit-index-bg); } 10%, 100% { color: #fff; background: var(--red); border-color: var(--red); } }
@keyframes fitIndexTwo { 0%, 27% { color: var(--muted); background: var(--fit-index-bg); } 30%, 100% { color: #fff; background: var(--red); border-color: var(--red); } }
@keyframes fitIndexThree { 0%, 47% { color: var(--muted); background: var(--fit-index-bg); } 50%, 100% { color: #fff; background: var(--red); border-color: var(--red); } }
@keyframes fitIndexFour { 0%, 67% { color: var(--muted); background: var(--fit-index-bg); } 70%, 100% { color: #fff; background: #28b879; border-color: #28b879; } }

@keyframes fitBorderSweepOne { 0%, 7%, 19%, 100% { opacity: 0; background-position: 120% 50%; } 10%, 18% { opacity: 1; background-position: -30% 50%; } }
@keyframes fitBorderSweepTwo { 0%, 27%, 39%, 100% { opacity: 0; background-position: 120% 50%; } 30%, 38% { opacity: 1; background-position: -30% 50%; } }
@keyframes fitBorderSweepThree { 0%, 47%, 59%, 100% { opacity: 0; background-position: 120% 50%; } 50%, 58% { opacity: 1; background-position: -30% 50%; } }
@keyframes fitBorderSweepFour { 0%, 67%, 79%, 100% { opacity: 0; background-position: 120% 50%; } 70%, 78% { opacity: 1; background-position: -30% 50%; } }

@keyframes fitConnectorOne { 0%, 19% { opacity: 0; transform: translateY(-50%) scaleX(0); } 22%, 100% { opacity: 1; transform: translateY(-50%) scaleX(1); } }
@keyframes fitConnectorTwo { 0%, 39% { opacity: 0; transform: translateY(-50%) scaleX(0); } 42%, 100% { opacity: 1; transform: translateY(-50%) scaleX(1); } }
@keyframes fitConnectorThree { 0%, 59% { opacity: 0; transform: translateY(-50%) scaleX(0); } 62%, 100% { opacity: 1; transform: translateY(-50%) scaleX(1); } }

@keyframes fitCheckFinal { 0%, 72% { opacity: 0; transform: scale(0.72); } 76%, 100% { opacity: 1; transform: scale(1); } }

.header-cta::before,
.button-primary::before,
.button-primary::after {
  content: none;
}

.header-cta:hover,
.button-primary:hover {
  transform: translateY(-1px);
  background: var(--red);
  color: #fff;
  border-color: rgba(0, 191, 255, 0.38);
  box-shadow: 0 0 0 5px rgba(0, 191, 255, 0.08), 0 16px 34px rgba(0, 191, 255, 0.18);
}

@media (max-width: 900px) {
  .fit-workflow {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .fit-workflow span:nth-child(2)::after {
    display: none;
  }
}

@media (max-width: 680px) {
  .fit-workflow {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .fit-workflow span,
  .fit-workflow span:nth-child(4),
  body.dark-mode .fit-workflow span,
  body.dark-mode .fit-workflow span:nth-child(4) {
    min-height: 96px;
    padding: 20px;
  }

  .fit-workflow span:nth-child(-n + 3)::after {
    top: auto;
    right: 50%;
    bottom: -27px;
    width: 3px;
    height: 26px;
    transform-origin: top center;
  }

  @keyframes fitConnectorOne { 0%, 19% { opacity: 0; transform: translateX(50%) scaleY(0); } 22%, 100% { opacity: 1; transform: translateX(50%) scaleY(1); } }
  @keyframes fitConnectorTwo { 0%, 39% { opacity: 0; transform: translateX(50%) scaleY(0); } 42%, 100% { opacity: 1; transform: translateX(50%) scaleY(1); } }
  @keyframes fitConnectorThree { 0%, 59% { opacity: 0; transform: translateX(50%) scaleY(0); } 62%, 100% { opacity: 1; transform: translateX(50%) scaleY(1); } }
}

/* Deterministic Best Fit workflow. JS applies cumulative states step by step. */
.fit-workflow {
  --fit-card-bg: rgba(255, 255, 255, 0.86);
  --fit-card-complete-bg: rgba(255, 255, 255, 0.94);
  --fit-card-border: rgba(17, 24, 39, 0.11);
  --fit-card-complete-border: rgba(0, 191, 255, 0.28);
  --fit-card-goal-bg: linear-gradient(135deg, rgba(232, 250, 241, 0.96), rgba(248, 255, 251, 0.9));
  --fit-card-goal-border: rgba(36, 170, 111, 0.38);
  --fit-connector: rgba(0, 191, 255, 0.54);
  --fit-goal: #28b879;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 34px;
  padding: 22px 14px 20px;
  overflow: visible;
}

.fit-workflow span,
.fit-workflow span:nth-child(4),
body.dark-mode .fit-workflow span,
body.dark-mode .fit-workflow span:nth-child(4) {
  position: relative;
  isolation: isolate;
  min-height: 118px;
  padding: 24px;
  overflow: visible;
  color: var(--ink);
  border: 1px solid var(--fit-card-border);
  border-radius: 20px;
  background: var(--fit-card-bg);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.88), 0 18px 38px rgba(15, 23, 42, 0.055);
  animation: none !important;
  transition: border-color 240ms ease, background 240ms ease, box-shadow 240ms ease, transform 240ms ease, color 240ms ease;
}

.fit-workflow span small,
.fit-workflow span:nth-child(4) small {
  display: grid;
  place-items: center;
  width: 46px;
  height: 34px;
  color: var(--muted);
  border: 1px solid rgba(17, 24, 39, 0.09);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.74);
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1;
  animation: none !important;
  transition: color 220ms ease, border-color 220ms ease, background 220ms ease, transform 220ms ease;
}

.fit-workflow span em {
  display: block;
  margin-top: 20px;
  font-family: var(--font-mono);
  font-size: clamp(1.08rem, 1.35vw, 1.34rem);
  font-style: normal;
  font-weight: 850;
  letter-spacing: -0.03em;
}

.fit-workflow span::before,
.fit-workflow span:nth-child(4)::before {
  content: "";
  position: absolute;
  inset: -2px;
  z-index: -1;
  padding: 2px;
  border-radius: inherit;
  opacity: 0;
  background: conic-gradient(from var(--fit-angle, 0deg), transparent 0 72%, rgba(17, 24, 39, 0.18) 76%, rgba(0, 191, 255, 0.82) 82%, rgba(255, 255, 255, 0.86) 86%, transparent 92% 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  animation: none !important;
  pointer-events: none;
}

.fit-workflow span:nth-child(-n + 3)::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -35px;
  z-index: 3;
  width: 34px;
  height: 3px;
  border-radius: 999px;
  opacity: 0;
  background: linear-gradient(90deg, rgba(0, 191, 255, 0.08), var(--fit-connector), rgba(0, 191, 255, 0.72));
  transform: translateY(-50%) scaleX(0);
  transform-origin: left center;
  animation: none !important;
  transition: opacity 180ms ease, transform 360ms cubic-bezier(.2,.8,.2,1);
}

.fit-workflow span.is-current {
  border-color: rgba(0, 191, 255, 0.2);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(255, 247, 247, 0.9));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 20px 44px rgba(0, 191, 255, 0.08);
}

.fit-workflow span.is-current::before {
  opacity: 1;
  animation: fitBorderOrbit 620ms linear 1 !important;
}

.fit-workflow span.is-complete {
  border-color: var(--fit-card-complete-border);
  background: var(--fit-card-complete-bg);
}

.fit-workflow span.is-complete small {
  color: #ffffff;
  border-color: var(--red);
  background: var(--red);
  transform: translateY(-1px);
}

.fit-workflow span.is-connected::after {
  opacity: 1;
  transform: translateY(-50%) scaleX(1);
}

.fit-workflow span.is-goal,
body.dark-mode .fit-workflow span.is-goal {
  color: #10251c;
  border-color: var(--fit-card-goal-border);
  background: var(--fit-card-goal-bg);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.86), 0 20px 48px rgba(40, 184, 121, 0.16);
}

.fit-workflow span.is-goal small {
  border-color: var(--fit-goal);
  background: var(--fit-goal);
}

.fit-workflow span:nth-child(4)::after {
  content: "\f00c";
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 5;
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  color: #ffffff;
  border-radius: 999px;
  background: var(--fit-goal);
  box-shadow: 0 0 0 8px rgba(40, 184, 121, 0.12), 0 14px 26px rgba(40, 184, 121, 0.18);
  font: var(--fa-font-solid);
  font-size: 0.76rem;
  opacity: 0;
  transform: scale(0.72);
  animation: none !important;
  transition: opacity 180ms ease, transform 260ms cubic-bezier(.2,.8,.2,1);
}

.fit-workflow span.is-goal::after {
  opacity: 1;
  transform: scale(1);
}

body.dark-mode .fit-workflow {
  --fit-card-bg: rgba(18, 20, 25, 0.68);
  --fit-card-complete-bg: rgba(22, 24, 30, 0.84);
  --fit-card-border: rgba(255, 255, 255, 0.08);
  --fit-card-complete-border: rgba(56, 189, 248, 0.3);
  --fit-card-goal-bg: linear-gradient(135deg, rgba(34, 74, 55, 0.72), rgba(18, 32, 25, 0.88));
  --fit-card-goal-border: rgba(61, 213, 140, 0.34);
  --fit-connector: rgba(56, 189, 248, 0.62);
}

body.dark-mode .fit-workflow span,
body.dark-mode .fit-workflow span:nth-child(4) {
  color: rgba(247, 247, 248, 0.93);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.045), 0 18px 42px rgba(0, 0, 0, 0.16);
}

body.dark-mode .fit-workflow span small {
  color: rgba(247, 247, 248, 0.62);
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.055);
}

body.dark-mode .fit-workflow span.is-current {
  background: linear-gradient(135deg, rgba(27, 30, 37, 0.95), rgba(38, 23, 28, 0.74));
}

body.dark-mode .fit-workflow span.is-current::before {
  background: conic-gradient(from var(--fit-angle, 0deg), transparent 0 72%, rgba(255, 255, 255, 0.16) 76%, rgba(56, 189, 248, 0.9) 82%, rgba(255, 255, 255, 0.72) 86%, transparent 92% 100%);
}

body.dark-mode .fit-workflow span.is-goal {
  color: rgba(238, 255, 246, 0.94);
}

@property --fit-angle {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}

@keyframes fitBorderOrbit {
  to { --fit-angle: 360deg; }
}

.header-cta::before,
.header-cta::after,
.button-primary::before,
.button-primary::after {
  content: none !important;
  display: none !important;
}

.header-cta:hover,
.button-primary:hover,
body.dark-mode .header-cta:hover,
body.dark-mode .button-primary:hover {
  color: #ffffff;
  background: var(--red);
  border-color: rgba(0, 191, 255, 0.42);
  box-shadow: 0 0 0 4px rgba(0, 191, 255, 0.08), 0 16px 34px rgba(0, 191, 255, 0.16);
  transform: translateY(-1px);
}

@media (max-width: 900px) {
  .fit-workflow {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 34px;
  }

  .fit-workflow span:nth-child(2)::after {
    display: block;
    top: auto;
    right: 50%;
    bottom: -28px;
    width: 3px;
    height: 28px;
    transform: translateX(50%) scaleY(0);
    transform-origin: top center;
  }

  .fit-workflow span:nth-child(2).is-connected::after {
    transform: translateX(50%) scaleY(1);
  }
}

@media (max-width: 680px) {
  .fit-workflow {
    grid-template-columns: 1fr;
    gap: 26px;
    padding-inline: 0;
  }

  .fit-workflow span,
  .fit-workflow span:nth-child(4),
  body.dark-mode .fit-workflow span,
  body.dark-mode .fit-workflow span:nth-child(4) {
    min-height: 92px;
    padding: 18px 20px;
  }

  .fit-workflow span em {
    margin-top: 14px;
    font-size: 1.1rem;
  }

  .fit-workflow span:nth-child(-n + 3)::after,
  .fit-workflow span:nth-child(2)::after {
    display: block;
    top: auto;
    right: 50%;
    bottom: -26px;
    width: 3px;
    height: 26px;
    transform: translateX(50%) scaleY(0);
    transform-origin: top center;
  }

  .fit-workflow span.is-connected::after,
  .fit-workflow span:nth-child(2).is-connected::after {
    transform: translateX(50%) scaleY(1);
  }
}

/* Final polish: stable Best Fit sizing, green completion, and contained CTA grid burst */
.fit-summary {
  grid-template-rows: 190px auto !important;
  min-height: 438px;
  overflow: visible;
}

.fit-summary-copy {
  grid-template-rows: 24px 78px 78px !important;
  min-height: 190px;
}

.fit-summary strong {
  align-items: end;
  font-size: clamp(1.9rem, 2.3vw, 2.45rem);
  line-height: 0.98;
  text-wrap: balance;
}

.fit-summary p {
  display: -webkit-box;
  max-width: 640px;
  min-height: 78px;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.fit-workflow {
  --fit-active-glare: rgba(124, 128, 138, 0.78);
  --fit-active-glare-soft: rgba(255, 255, 255, 0.88);
  --fit-card-complete-bg: linear-gradient(135deg, rgba(242, 253, 248, 0.98), rgba(255, 255, 255, 0.9));
  --fit-card-complete-border: rgba(40, 184, 121, 0.36);
  --fit-connector: rgba(40, 184, 121, 0.7);
  --fit-goal: #2dbf7d;
}

.fit-workflow span,
.fit-workflow span:nth-child(4),
body.dark-mode .fit-workflow span,
body.dark-mode .fit-workflow span:nth-child(4) {
  min-width: 0;
  min-height: 110px;
  padding: 20px 18px;
  overflow: visible;
}

.fit-workflow span::before,
.fit-workflow span:nth-child(4)::before {
  background: conic-gradient(from var(--fit-angle, 0deg), transparent 0 70%, rgba(130, 132, 140, 0.18) 75%, var(--fit-active-glare) 81%, var(--fit-active-glare-soft) 86%, transparent 92% 100%);
}

.fit-workflow span em {
  max-width: 100%;
  margin-top: 18px;
  overflow: hidden;
  font-size: clamp(0.92rem, 1.05vw, 1.12rem);
  line-height: 1.02;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fit-workflow span.is-current {
  border-color: rgba(124, 128, 138, 0.24);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(247, 248, 250, 0.9));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92), 0 20px 44px rgba(15, 23, 42, 0.07);
}

.fit-workflow span.is-complete {
  color: #10251c;
  border-color: var(--fit-card-complete-border);
  background: var(--fit-card-complete-bg);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 18px 38px rgba(40, 184, 121, 0.08);
}

.fit-workflow span.is-complete small {
  color: #ffffff;
  border-color: var(--fit-goal);
  background: var(--fit-goal);
  box-shadow: 0 8px 20px rgba(40, 184, 121, 0.18);
}

.fit-workflow span.is-connected::after {
  background: linear-gradient(90deg, rgba(40, 184, 121, 0.12), rgba(40, 184, 121, 0.72), rgba(40, 184, 121, 0.94));
}

.fit-workflow span.is-goal,
body.dark-mode .fit-workflow span.is-goal {
  background: linear-gradient(135deg, rgba(223, 250, 237, 0.96), rgba(246, 255, 250, 0.92));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 22px 52px rgba(40, 184, 121, 0.17);
}

body.dark-mode .fit-workflow {
  --fit-active-glare: rgba(228, 231, 236, 0.66);
  --fit-active-glare-soft: rgba(255, 255, 255, 0.76);
  --fit-card-complete-bg: linear-gradient(135deg, rgba(21, 52, 38, 0.84), rgba(17, 22, 20, 0.9));
  --fit-card-complete-border: rgba(61, 213, 140, 0.34);
  --fit-connector: rgba(61, 213, 140, 0.72);
  --fit-goal: #37cf89;
}

body.dark-mode .fit-workflow span.is-current {
  border-color: rgba(255, 255, 255, 0.16);
  background: linear-gradient(135deg, rgba(28, 31, 38, 0.96), rgba(18, 20, 25, 0.82));
}

body.dark-mode .fit-workflow span.is-complete {
  color: rgba(238, 255, 246, 0.94);
}

body.dark-mode .fit-workflow span.is-goal {
  background: linear-gradient(135deg, rgba(24, 74, 50, 0.88), rgba(16, 32, 25, 0.92));
}

.header-cta,
.button-primary {
  position: relative;
  overflow: visible;
  isolation: isolate;
}

.header-cta::before,
.button-primary::before {
  content: "" !important;
  display: block !important;
  position: absolute;
  inset: -14px -18px;
  z-index: -2;
  border-radius: 24px;
  opacity: 0;
  background:
    linear-gradient(rgba(0, 191, 255, 0.22) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 191, 255, 0.22) 1px, transparent 1px);
  background-size: 10px 10px;
  transform: perspective(180px) rotateX(60deg) translateY(8px) scale(0.62);
  transform-origin: center bottom;
  filter: drop-shadow(0 18px 20px rgba(0, 191, 255, 0.12));
  transition: opacity 170ms ease, transform 340ms cubic-bezier(.2,.8,.2,1);
  pointer-events: none;
}

.header-cta::after,
.button-primary::after {
  content: "" !important;
  display: block !important;
  position: absolute;
  inset: -7px;
  z-index: -1;
  border-radius: inherit;
  opacity: 0;
  background: radial-gradient(circle, rgba(0, 191, 255, 0.18), transparent 62%);
  transform: scale(0.76);
  transition: opacity 170ms ease, transform 340ms cubic-bezier(.2,.8,.2,1);
  pointer-events: none;
}

.header-cta:hover::before,
.button-primary:hover::before,
.header-cta:focus-visible::before,
.button-primary:focus-visible::before {
  opacity: 1;
  transform: perspective(180px) rotateX(60deg) translateY(18px) scale(1.12);
}

.header-cta:hover::after,
.button-primary:hover::after,
.header-cta:focus-visible::after,
.button-primary:focus-visible::after {
  opacity: 1;
  transform: scale(1.04);
}

.header-cta:hover,
.button-primary:hover,
body.dark-mode .header-cta:hover,
body.dark-mode .button-primary:hover {
  color: #ffffff;
  background: var(--red);
  border-color: rgba(0, 191, 255, 0.45);
  box-shadow: 0 0 0 5px rgba(0, 191, 255, 0.09), 0 18px 38px rgba(0, 191, 255, 0.2);
}

@media (max-width: 900px) {
  .fit-summary {
    grid-template-rows: auto auto !important;
    min-height: 0;
  }

  .fit-summary-copy {
    grid-template-rows: 22px auto auto !important;
    min-height: 0;
  }

  .fit-summary p {
    min-height: 0;
    -webkit-line-clamp: 3;
  }

  .fit-workflow span em {
    white-space: normal;
  }
}

@media (max-width: 680px) {
  .fit-workflow span,
  .fit-workflow span:nth-child(4),
  body.dark-mode .fit-workflow span,
  body.dark-mode .fit-workflow span:nth-child(4) {
    min-height: 84px;
  }

  .header-cta::before,
  .button-primary::before {
    inset: -10px -12px;
    transform: perspective(160px) rotateX(58deg) translateY(7px) scale(0.7);
  }
}

/* Last interaction pass: smoother final workflow state and calmer CTA system plane */
.fit-workflow span small,
.fit-workflow span:nth-child(4) small,
.fit-workflow span.is-complete small,
.fit-workflow span.is-goal small {
  transform: none !important;
  transition: color 320ms ease, border-color 320ms ease, background 320ms ease, box-shadow 320ms ease;
}

.fit-workflow span,
.fit-workflow span:nth-child(4) {
  transition: color 360ms ease, border-color 360ms ease, background 360ms ease, box-shadow 360ms ease, transform 360ms ease;
}

.fit-workflow span.is-goal,
body.dark-mode .fit-workflow span.is-goal {
  transition: color 420ms ease, border-color 420ms ease, background 420ms ease, box-shadow 420ms ease;
}

.fit-workflow span:nth-child(4)::after {
  top: 12px;
  right: 12px;
  width: 26px;
  height: 26px;
  transform: scale(0.86);
  transition: opacity 260ms ease, transform 360ms cubic-bezier(.16, 1, .3, 1);
}

.fit-workflow span.is-goal::after {
  transform: scale(1);
}

.header-cta,
.button-primary {
  overflow: visible;
}

.header-cta::before,
.button-primary::before {
  inset: auto 50% -28px auto;
  width: 132%;
  height: 52px;
  border-radius: 18px;
  opacity: 0;
  background:
    linear-gradient(rgba(0, 191, 255, 0.14) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 191, 255, 0.14) 1px, transparent 1px),
    radial-gradient(circle at 50% 20%, rgba(0, 191, 255, 0.16), transparent 60%);
  background-size: 16px 16px, 16px 16px, 100% 100%;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent);
  filter: none;
  transform: translateX(50%) perspective(220px) rotateX(64deg) translateY(10px) scale(0.72);
  transition: opacity 90ms ease, transform 300ms cubic-bezier(.16, 1, .3, 1);
}

.header-cta::after,
.button-primary::after {
  inset: 1px;
  z-index: -1;
  border-radius: inherit;
  opacity: 0;
  background: linear-gradient(110deg, transparent 12%, rgba(255, 255, 255, 0.2) 42%, rgba(255, 255, 255, 0.46) 50%, rgba(255, 255, 255, 0.16) 58%, transparent 86%);
  transform: translateX(-34%);
  transition: opacity 80ms ease, transform 360ms cubic-bezier(.16, 1, .3, 1);
}

.header-cta:hover::before,
.button-primary:hover::before,
.header-cta:focus-visible::before,
.button-primary:focus-visible::before {
  opacity: 1;
  transform: translateX(50%) perspective(220px) rotateX(64deg) translateY(18px) scale(1);
}

.header-cta:hover::after,
.button-primary:hover::after,
.header-cta:focus-visible::after,
.button-primary:focus-visible::after {
  opacity: 1;
  transform: translateX(34%);
}

body.dark-mode .header-cta::before,
body.dark-mode .button-primary::before {
  background:
    linear-gradient(rgba(56, 189, 248, 0.18) 1px, transparent 1px),
    linear-gradient(90deg, rgba(56, 189, 248, 0.18) 1px, transparent 1px),
    radial-gradient(circle at 50% 20%, rgba(56, 189, 248, 0.16), transparent 60%);
}

/* Final pass: nav state, scorecard cleanup, anchor offsets, CTA border shine */
html {
  scroll-padding-top: 112px;
}

.section,
.final-cta,
.hero,
[id] {
  scroll-margin-top: 118px;
}

.nav-links a[aria-current="page"],
.nav-links a.nav-current,
.nav-links a.is-current,
.nav-links a.is-active {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 8px 18px rgba(15, 23, 42, 0.06);
}

body.dark-mode .nav-links a[aria-current="page"],
body.dark-mode .nav-links a.nav-current,
body.dark-mode .nav-links a.is-current,
body.dark-mode .nav-links a.is-active {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.085);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.055), 0 8px 18px rgba(0, 0, 0, 0.16);
}

.scorecard-dialog {
  grid-template-columns: 1fr;
  width: min(100%, 860px);
}

.scorecard-main {
  max-height: min(92vh, 900px);
  padding-bottom: clamp(24px, 4vw, 44px);
}

.scorecard-preview {
  display: none !important;
}

.scorecard-header h2 {
  font-size: clamp(2rem, 3.4vw, 3.5rem);
}

.field-block select {
  appearance: none;
  padding-right: 42px;
  background:
    linear-gradient(45deg, transparent 50%, var(--muted) 50%) calc(100% - 21px) 50% / 6px 6px no-repeat,
    linear-gradient(135deg, var(--muted) 50%, transparent 50%) calc(100% - 15px) 50% / 6px 6px no-repeat,
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(248, 248, 248, 0.88));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82), 0 10px 24px rgba(15, 23, 42, 0.035);
}

body.dark-mode .field-block select {
  background:
    linear-gradient(45deg, transparent 50%, rgba(247, 247, 248, 0.72) 50%) calc(100% - 21px) 50% / 6px 6px no-repeat,
    linear-gradient(135deg, rgba(247, 247, 248, 0.72) 50%, transparent 50%) calc(100% - 15px) 50% / 6px 6px no-repeat,
    linear-gradient(135deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.035));
}

.scorecard-actions {
  border-top: 0 !important;
  padding-top: 4px;
}

.scorecard-main.has-scroll::after {
  bottom: 0;
  height: 58px;
  margin: 0 calc(clamp(24px, 4vw, 44px) * -1) calc(clamp(24px, 4vw, 44px) * -1);
  padding-bottom: 12px;
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.98) 68%);
}

body.dark-mode .scorecard-main.has-scroll::after {
  background: linear-gradient(180deg, transparent, rgba(11, 13, 16, 0.98) 68%);
}

.header-cta,
.button-primary {
  overflow: hidden;
}

.header-cta::before,
.button-primary::before {
  content: "" !important;
  display: block !important;
  position: absolute;
  inset: -2px;
  z-index: -1;
  padding: 2px;
  border-radius: inherit;
  opacity: 0;
  background: conic-gradient(from var(--cta-angle, 0deg), transparent 0 70%, rgba(255, 255, 255, 0.18) 75%, rgba(255, 255, 255, 0.72) 82%, rgba(0, 191, 255, 0.72) 88%, transparent 94% 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  transform: none;
  filter: none;
  transition: opacity 80ms ease;
}

.header-cta::after,
.button-primary::after {
  content: "" !important;
  display: block !important;
  position: absolute;
  inset: 1px;
  z-index: -1;
  border-radius: inherit;
  opacity: 0;
  background: linear-gradient(110deg, transparent 10%, rgba(255, 255, 255, 0.16) 44%, rgba(255, 255, 255, 0.42) 52%, transparent 76%);
  transform: translateX(-45%);
  transition: opacity 80ms ease, transform 420ms cubic-bezier(.16, 1, .3, 1);
}

.header-cta:hover::before,
.button-primary:hover::before,
.header-cta:focus-visible::before,
.button-primary:focus-visible::before {
  opacity: 1;
  animation: ctaBorderOrbit 780ms linear infinite;
}

.header-cta:hover::after,
.button-primary:hover::after,
.header-cta:focus-visible::after,
.button-primary:focus-visible::after {
  opacity: 1;
  transform: translateX(45%);
}

@property --cta-angle {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}

@keyframes ctaBorderOrbit {
  to { --cta-angle: 360deg; }
}

.fit-workflow {
  --fit-active-glare: rgba(228, 231, 236, 0.66);
  --fit-active-glare-soft: rgba(255, 255, 255, 0.76);
}

.fit-workflow span.is-current {
  border-color: rgba(17, 24, 39, 0.16);
  background: linear-gradient(135deg, rgba(252, 253, 255, 0.98), rgba(244, 246, 250, 0.9));
}

.audience-grid {
  scroll-snap-type: none;
}

.audience-grid [data-fit-set="before"],
.audience-grid [data-fit-set="after"] {
  opacity: 0.42;
}

.audience-grid button.is-active {
  opacity: 1;
}

@media (max-width: 680px) {
  html {
    scroll-padding-top: 92px;
  }

  .section,
  .final-cta,
  .hero,
  [id] {
    scroll-margin-top: 96px;
  }

  .scorecard-main.has-scroll::after {
    margin-inline: -20px;
    margin-bottom: -20px;
  }
}

/* Final responsive/detail repair */
html {
  scroll-padding-top: 82px;
}

.section,
.final-cta,
.hero,
[id] {
  scroll-margin-top: 88px;
}

.scorecard-main {
  padding-bottom: clamp(24px, 4vw, 44px) !important;
}

.scorecard-main.has-scroll::after {
  bottom: 0;
  height: 64px;
  align-items: flex-end;
  margin: -64px calc(clamp(24px, 4vw, 44px) * -1) calc(clamp(24px, 4vw, 44px) * -1);
  padding-bottom: 14px;
  background: linear-gradient(180deg, rgba(255,255,255,0), rgba(255,255,255,0.98) 42%, #ffffff 100%);
}

body.dark-mode .scorecard-main.has-scroll::after {
  background: linear-gradient(180deg, rgba(11,13,16,0), rgba(11,13,16,0.98) 42%, #0b0d10 100%);
}

.field-block select,
body.dark-mode .field-block select {
  border-color: var(--line) !important;
  box-shadow: none !important;
}

body.dark-mode .field-block select {
  color-scheme: dark;
  border-color: rgba(255, 255, 255, 0.09) !important;
}

.fit-workflow span:nth-child(4)::after {
  transition: opacity 420ms ease, transform 420ms cubic-bezier(.16, 1, .3, 1);
}

.fit-workflow span.is-goal,
body.dark-mode .fit-workflow span.is-goal {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.86), 0 18px 40px rgba(40, 184, 121, 0.13);
}

.footer-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-top: 14px;
  color: var(--faint);
  font-size: 0.78rem;
}

.footer-bottom {
  display: none !important;
}

@media (max-width: 980px) {
  .audience-section .section-grid {
    gap: 22px;
  }

  .fit-summary {
    width: 100%;
    min-height: 0 !important;
    padding: 24px;
    border-radius: 24px;
    overflow: hidden;
  }

  .fit-summary-copy {
    grid-template-rows: auto auto auto !important;
    min-height: 0;
  }

  .fit-summary strong {
    font-size: clamp(2rem, 8vw, 3rem);
  }

  .fit-summary p {
    min-height: 0;
    -webkit-line-clamp: 3;
  }

  .fit-workflow {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 8px 0 0;
  }

  .fit-workflow span,
  .fit-workflow span:nth-child(4),
  body.dark-mode .fit-workflow span,
  body.dark-mode .fit-workflow span:nth-child(4) {
    min-height: 86px;
    padding: 18px;
  }

  .fit-workflow span em {
    white-space: normal;
  }

  .audience-rail {
    width: calc(100% + 24px);
    margin-inline: -12px;
  }
}

@media (max-width: 680px) {
  html {
    scroll-padding-top: 76px;
  }

  .section,
  .final-cta,
  .hero,
  [id] {
    scroll-margin-top: 80px;
  }

  .scorecard-main.has-scroll::after {
    margin: -64px -20px -20px;
  }

  .site-footer {
    width: min(100% - 22px, var(--max));
    margin-top: 42px;
    border-radius: 26px 26px 0 0;
  }

  .site-footer-inner {
    grid-template-columns: 1fr !important;
    gap: 24px;
    padding: 28px 20px;
  }

  .footer-brand-block,
  .footer-links {
    align-items: flex-start;
    text-align: left;
  }

  .footer-socials {
    justify-content: flex-start;
  }

  .footer-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 14px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
  }

  .footer-links strong {
    grid-column: 1 / -1;
  }

  .footer-links a {
    min-height: 38px;
    padding: 9px 10px;
    border-radius: 12px;
    background: var(--paper);
  }

  .footer-meta {
    display: grid;
    gap: 4px;
  }
}

/* Final mobile/modal correction pass */
html {
  scroll-padding-top: 70px;
}

.section,
.final-cta,
.hero,
[id] {
  scroll-margin-top: 74px;
}

.scorecard-dialog {
  height: min(92vh, 820px);
}

.scorecard-main {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  max-height: none;
  height: 100%;
  overflow: hidden !important;
}

.scorecard-form {
  display: grid;
  min-height: 0;
  grid-template-rows: auto minmax(0, 1fr) auto auto;
}

.scorecard-progress {
  margin-bottom: 14px;
}

.score-step.is-active {
  min-height: 0;
  max-height: none;
  overflow-y: auto;
  padding-right: 4px;
  padding-bottom: 72px;
  scrollbar-width: thin;
}

.score-step.has-scroll::after {
  content: "Scroll for more";
  position: sticky;
  bottom: 0;
  z-index: 8;
  display: flex;
  height: 54px;
  align-items: flex-end;
  justify-content: center;
  margin: -54px -4px 0;
  padding-bottom: 12px;
  color: var(--red);
  background: linear-gradient(180deg, transparent, rgba(255,255,255,0.98) 58%, #ffffff);
  font-size: 0.72rem;
  font-weight: 850;
  pointer-events: none;
  text-transform: uppercase;
}

.score-step.has-scroll.is-at-bottom::after {
  display: none;
}

body.dark-mode .score-step.has-scroll::after {
  background: linear-gradient(180deg, transparent, rgba(11,13,16,0.98) 58%, #0b0d10);
}

.scorecard-main.has-scroll::after {
  content: none !important;
  display: none !important;
}

.scorecard-actions {
  position: sticky;
  bottom: 0;
  z-index: 12;
  margin: 0 calc(clamp(24px, 4vw, 44px) * -1) calc(clamp(24px, 4vw, 44px) * -1);
  padding: 14px clamp(24px, 4vw, 44px) clamp(18px, 3vw, 28px);
  background: linear-gradient(180deg, rgba(255,255,255,0.84), #ffffff 32%);
}

body.dark-mode .scorecard-actions {
  background: linear-gradient(180deg, rgba(11,13,16,0.84), #0b0d10 32%);
}

.scorecard-status {
  display: none;
}

@media (max-width: 980px) {
  .audience-section .section-intro {
    margin-bottom: 2px;
  }

  .fit-summary {
    padding: 20px;
  }

  .fit-summary strong {
    font-size: clamp(1.8rem, 7vw, 2.35rem);
    line-height: 1;
  }

  .fit-summary p {
    font-size: 0.98rem;
    line-height: 1.45;
  }

  .fit-workflow {
    gap: 12px;
  }

  .fit-workflow span,
  .fit-workflow span:nth-child(4),
  body.dark-mode .fit-workflow span,
  body.dark-mode .fit-workflow span:nth-child(4) {
    display: grid;
    grid-template-columns: 44px 1fr;
    min-height: 58px;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 18px;
  }

  .fit-workflow span small,
  .fit-workflow span:nth-child(4) small {
    width: 40px;
    height: 30px;
    font-size: 0.72rem;
  }

  .fit-workflow span em {
    margin: 0;
    font-size: 0.96rem;
    white-space: nowrap;
  }

  .fit-workflow span:nth-child(-n + 3)::after,
  .fit-workflow span:nth-child(2)::after {
    bottom: -12px;
    height: 12px;
  }

  .fit-workflow span:nth-child(4)::after {
    top: 50%;
    right: 12px;
    width: 22px;
    height: 22px;
    transform: translateY(-50%) scale(0.86);
  }

  .fit-workflow span.is-goal::after {
    transform: translateY(-50%) scale(1);
  }
}

@media (max-width: 680px) {
  html {
    scroll-padding-top: 64px;
  }

  .section,
  .final-cta,
  .hero,
  [id] {
    scroll-margin-top: 68px;
  }

  .scorecard-modal {
    padding: 8px;
  }

  .scorecard-dialog {
    height: 94vh;
    max-height: 94vh;
  }

  .scorecard-main {
    padding: 18px;
  }

  .scorecard-header {
    margin-bottom: 14px;
  }

  .scorecard-header h2 {
    font-size: clamp(1.65rem, 8vw, 2.3rem);
  }

  .scorecard-header p {
    font-size: 0.94rem;
  }

  .scorecard-progress {
    grid-template-columns: repeat(4, minmax(66px, 1fr));
    gap: 6px;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .scorecard-progress span {
    padding: 8px 7px;
    font-size: 0.62rem;
  }

  .score-step.is-active {
    padding-bottom: 82px;
  }

  .scorecard-actions {
    margin: 0 -18px -18px;
    padding: 12px 18px 18px;
  }

  .scorecard-actions button {
    min-height: 42px;
    font-size: 0.8rem;
  }

  .site-footer {
    width: 100%;
    margin-top: 36px;
    padding: 0;
    border-radius: 0;
  }

  .site-footer-inner {
    width: min(100% - 32px, var(--max));
    gap: 18px;
    padding: 24px 0 30px;
  }

  .footer-brand-block {
    gap: 12px;
  }

  .footer-brand-block p {
    font-size: 0.86rem;
    line-height: 1.55;
  }

  .footer-socials a {
    width: 36px;
    height: 36px;
    border-radius: 12px;
  }

  .footer-meta {
    margin-top: 2px;
    font-size: 0.72rem;
  }

  .footer-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 10px;
    padding-top: 14px;
  }

  .footer-links a {
    min-height: auto;
    padding: 7px 0;
    background: transparent;
    font-size: 0.8rem;
  }
}

/* Screenshot repair: compact mobile footer, Best Fit, success, and anchor spacing */
html {
  scroll-padding-top: 56px;
}

.section,
.final-cta,
.hero,
[id] {
  scroll-margin-top: 60px;
}

@media (max-width: 980px) {
  .audience-section,
  .audience-section .section-grid,
  .fit-summary {
    max-width: 100%;
    overflow-x: clip;
  }

  .fit-summary p {
    max-width: 100%;
  }

  .fit-workflow span em {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

@media (max-width: 680px) {
  html {
    scroll-padding-top: 52px;
  }

  .section,
  .final-cta,
  .hero,
  [id] {
    scroll-margin-top: 56px;
  }

  .fit-summary {
    padding: 18px 16px;
    border-radius: 22px;
  }

  .fit-summary strong {
    font-size: clamp(1.65rem, 8vw, 2.15rem);
  }

  .fit-summary p {
    display: -webkit-box;
    font-size: 0.92rem;
    line-height: 1.42;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .fit-workflow {
    gap: 10px;
  }

  .fit-workflow span,
  .fit-workflow span:nth-child(4),
  body.dark-mode .fit-workflow span,
  body.dark-mode .fit-workflow span:nth-child(4) {
    min-height: 54px;
    grid-template-columns: 38px minmax(0, 1fr);
    padding: 10px 12px;
    border-radius: 16px;
  }

  .fit-workflow span small,
  .fit-workflow span:nth-child(4) small {
    width: 36px;
    height: 28px;
    font-size: 0.68rem;
  }

  .fit-workflow span em {
    font-size: 0.88rem;
  }

  .fit-workflow span:nth-child(4)::after {
    width: 20px;
    height: 20px;
    font-size: 0.62rem;
  }

  .site-footer {
    background:
      linear-gradient(rgba(8, 9, 10, 0.035) 1px, transparent 1px),
      linear-gradient(90deg, rgba(8, 9, 10, 0.035) 1px, transparent 1px),
      rgba(255, 255, 255, 0.78);
    background-size: 28px 28px;
  }

  .site-footer-inner {
    width: min(100% - 36px, var(--max));
    gap: 16px;
    padding: 22px 0 26px;
  }

  .footer-brand-block {
    gap: 10px;
    max-width: none;
  }

  .footer-brand-block .brand {
    font-size: 0.8rem;
  }

  .footer-brand-block p {
    max-width: 32ch;
    font-size: 0.82rem;
    line-height: 1.5;
  }

  .footer-socials {
    gap: 7px;
  }

  .footer-socials a {
    width: 34px;
    height: 34px;
    border-radius: 11px;
  }

  .footer-meta {
    font-size: 0.7rem;
  }

  .footer-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 5px 20px;
    padding-top: 12px;
    border-top: 1px solid var(--line);
  }

  .footer-links strong {
    margin-bottom: 2px;
    font-size: 0.76rem;
  }

  .footer-links a {
    padding: 5px 0;
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 650;
  }
}

/* Hard reset for scorecard modal layout after QA screenshots */
html,
body {
  min-height: 100%;
}

body {
  display: flex;
  min-height: 100vh;
  flex-direction: column;
}

body > main,
body > .site-main,
body > .home-page,
body > .blog-index,
body > .post-shell,
body > .page-shell {
  flex: 1 0 auto;
}

.site-footer {
  margin-top: auto;
}

.scorecard-dialog {
  width: min(100%, 860px) !important;
  height: min(90vh, 760px) !important;
  max-height: min(90vh, 760px) !important;
  overflow: hidden !important;
}

.scorecard-main {
  display: grid !important;
  grid-template-rows: auto minmax(0, 1fr) !important;
  height: 100% !important;
  max-height: none !important;
  overflow: hidden !important;
  padding: clamp(22px, 3.5vw, 38px) !important;
}

.scorecard-header {
  margin-bottom: 18px !important;
}

.scorecard-header h2 {
  font-size: clamp(2rem, 3.6vw, 3.55rem) !important;
}

.scorecard-form {
  display: grid !important;
  min-height: 0 !important;
  height: 100% !important;
  grid-template-rows: auto minmax(0, 1fr) auto !important;
  gap: 0 !important;
}

.scorecard-progress {
  margin: 0 0 14px !important;
}

.score-step {
  min-height: 0 !important;
}

.score-step.is-active {
  display: grid !important;
  align-content: start;
  gap: 14px;
  min-height: 0 !important;
  overflow-y: auto !important;
  padding: 0 4px 18px 0 !important;
}

.score-step.has-scroll::after {
  content: "Scroll for more";
  position: static !important;
  display: flex !important;
  height: 44px;
  align-items: center;
  justify-content: center;
  margin: 6px 0 0 !important;
  padding: 0 !important;
  color: var(--red);
  background: linear-gradient(180deg, transparent, rgba(0, 191, 255, 0.045));
  border-radius: 14px;
  font-size: 0.72rem;
  font-weight: 850;
  pointer-events: none;
  text-transform: uppercase;
}

.score-step.has-scroll.is-at-bottom::after {
  display: flex !important;
}

body.dark-mode .score-step.has-scroll::after {
  background: linear-gradient(180deg, transparent, rgba(56, 189, 248, 0.08));
}

.scorecard-main.has-scroll::after {
  content: none !important;
  display: none !important;
}

.scorecard-actions {
  position: static !important;
  display: flex;
  justify-content: flex-end;
  margin: 14px 0 0 !important;
  padding: 14px 0 0 !important;
  border-top: 1px solid var(--line) !important;
  background: transparent !important;
}

.scorecard-status {
  display: none !important;
}

@media (max-width: 680px) {
  .scorecard-dialog {
    height: 94vh !important;
    max-height: 94vh !important;
  }

  .scorecard-main {
    padding: 18px !important;
  }

  .scorecard-header h2 {
    font-size: clamp(1.75rem, 8.5vw, 2.6rem) !important;
  }

  .scorecard-header p {
    font-size: 0.92rem;
    line-height: 1.45;
  }

  .scorecard-actions {
    gap: 8px;
  }

  .scorecard-actions button {
    flex: 1;
  }

  .score-step.has-scroll::after {
    height: 40px;
    font-size: 0.68rem;
  }

}

/* Scorecard final correction: compact header, clean progress states, true scroll cues */
.scorecard-dialog {
  height: min(88vh, 720px) !important;
  max-height: min(88vh, 720px) !important;
}

.scorecard-main {
  padding: clamp(18px, 3vw, 30px) !important;
}

.scorecard-header {
  margin-bottom: 12px !important;
}

.scorecard-kicker {
  min-height: 26px;
  margin-bottom: 10px;
  font-size: 0.66rem;
}

.scorecard-header h2 {
  max-width: 700px;
  font-size: clamp(1.65rem, 3vw, 2.65rem) !important;
  line-height: 1;
}

.scorecard-header p {
  max-width: 650px;
  margin-top: 10px;
  font-size: 0.92rem;
  line-height: 1.45;
}

.scorecard-progress span,
body.dark-mode .scorecard-progress span {
  color: var(--faint);
  border-color: var(--line);
  background: var(--paper);
  box-shadow: none;
}

.scorecard-progress span.is-active,
body.dark-mode .scorecard-progress span.is-active {
  color: var(--ink);
  border-color: rgba(0, 191, 255, 0.42);
  background:
    linear-gradient(rgba(0, 191, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 191, 255, 0.06) 1px, transparent 1px),
    var(--paper);
  background-size: 12px 12px;
  box-shadow: inset 0 0 0 1px rgba(0, 191, 255, 0.08);
}

.scorecard-progress span.is-complete,
body.dark-mode .scorecard-progress span.is-complete {
  color: #17764c;
  border-color: rgba(40, 184, 121, 0.28);
  background: rgba(40, 184, 121, 0.08);
}

body.dark-mode .scorecard-progress span.is-active {
  color: rgba(247, 247, 248, 0.94);
  background:
    linear-gradient(rgba(56, 189, 248, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(56, 189, 248, 0.08) 1px, transparent 1px),
    rgba(255, 255, 255, 0.04);
  background-size: 12px 12px;
}

body.dark-mode .scorecard-progress span.is-complete {
  color: rgba(188, 255, 221, 0.92);
  background: rgba(40, 184, 121, 0.12);
}

.score-step.is-active {
  position: relative;
  padding: 18px 8px 72px 0 !important;
}

.score-step.has-scroll::before,
.score-step.has-scroll::after {
  content: "";
  position: sticky;
  z-index: 9;
  display: block !important;
  pointer-events: none;
}

.score-step.has-scroll::before {
  top: 0;
  height: 34px;
  margin: -18px 0 -34px;
  background: linear-gradient(180deg, #ffffff, rgba(255,255,255,0));
}

.score-step.has-scroll::after {
  bottom: 0;
  height: 62px;
  margin: -62px 0 0 !important;
  border-radius: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0), #ffffff 68%);
}

.score-step.has-scroll::marker {
  content: "";
}

.score-step.has-scroll .scroll-label {
  display: none;
}

.score-step.has-scroll:not(.is-at-bottom) {
  --scroll-cue: "Scroll for more";
}

.score-step.has-scroll:not(.is-at-bottom)::after {
  content: var(--scroll-cue);
  display: flex !important;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 12px;
  color: var(--red);
  font-size: 0.72rem;
  font-weight: 850;
  text-transform: uppercase;
}

.score-step.has-scroll.is-at-bottom::after {
  content: "" !important;
  height: 24px;
  margin-top: -24px !important;
}

body.dark-mode .score-step.has-scroll::before {
  background: linear-gradient(180deg, #0b0d10, rgba(11,13,16,0));
}

body.dark-mode .score-step.has-scroll::after {
  background: linear-gradient(180deg, rgba(11,13,16,0), #0b0d10 68%);
}

@media (max-width: 680px) {
  .scorecard-dialog {
    height: 92vh !important;
    max-height: 92vh !important;
  }

  .scorecard-main {
    padding: 16px !important;
  }

  .scorecard-header h2 {
    font-size: clamp(1.55rem, 7vw, 2.05rem) !important;
  }

  .scorecard-header p {
    font-size: 0.86rem;
  }

  .scorecard-progress {
    margin-bottom: 10px !important;
  }

  .score-step.is-active {
    padding-bottom: 76px !important;
  }
}

/* Final modal/spacing polish */
.latest-heading > div {
  display: grid;
  gap: 12px;
}

.latest-heading .section-kicker,
.latest-heading h2,
.latest-heading p {
  margin-top: 0;
  margin-bottom: 0;
}

.latest-heading {
  margin-bottom: clamp(22px, 3vw, 34px) !important;
}

.scorecard-dialog {
  overflow: hidden !important;
}

.scorecard-main {
  grid-template-rows: auto minmax(0, 1fr) !important;
  min-height: 0;
}

.scorecard-header {
  margin-bottom: 10px !important;
}

.scorecard-header h2 {
  font-size: clamp(1.55rem, 2.65vw, 2.35rem) !important;
}

.scorecard-header p {
  font-size: 0.9rem;
}

.scorecard-form {
  position: relative;
  min-height: 0;
  overflow: hidden;
  --score-progress-height: 48px;
  --score-actions-height: 74px;
}

.scorecard-progress {
  min-height: var(--score-progress-height);
  margin-bottom: 10px !important;
}

.scorecard-progress span,
body.dark-mode .scorecard-progress span {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  justify-content: center;
  gap: 7px;
  color: var(--muted) !important;
  border-color: var(--line) !important;
  background: var(--glass) !important;
  box-shadow: none !important;
}

.scorecard-progress span.is-active,
body.dark-mode .scorecard-progress span.is-active {
  color: var(--ink) !important;
  border-color: rgba(0, 191, 255, 0.44) !important;
  background:
    linear-gradient(rgba(0, 191, 255, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 191, 255, 0.055) 1px, transparent 1px),
    var(--paper) !important;
  background-size: 12px 12px !important;
  box-shadow: inset 0 0 0 1px rgba(0, 191, 255, 0.08) !important;
}

.scorecard-progress span.is-complete,
body.dark-mode .scorecard-progress span.is-complete {
  color: #117246 !important;
  border-color: rgba(40, 184, 121, 0.3) !important;
  background: rgba(40, 184, 121, 0.11) !important;
  box-shadow: inset 0 0 0 1px rgba(40, 184, 121, 0.08) !important;
}

.scorecard-progress span.is-complete::before {
  content: "\f00c";
  font-family: "Font Awesome 6 Free";
  font-size: 0.72rem;
  font-weight: 900;
}

body.dark-mode .scorecard-progress span.is-active {
  color: rgba(247, 247, 248, 0.96) !important;
  background:
    linear-gradient(rgba(56, 189, 248, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(56, 189, 248, 0.08) 1px, transparent 1px),
    rgba(255, 255, 255, 0.045) !important;
  background-size: 12px 12px !important;
}

body.dark-mode .scorecard-progress span.is-complete {
  color: rgba(191, 255, 222, 0.95) !important;
  background: rgba(40, 184, 121, 0.13) !important;
}

.score-step.is-active {
  padding: 14px 8px 18px 0 !important;
  scrollbar-gutter: stable;
}

.score-step.has-scroll::before,
.score-step.has-scroll::after,
.score-step.has-scroll.is-at-bottom::after,
body.dark-mode .score-step.has-scroll::before,
body.dark-mode .score-step.has-scroll::after {
  display: none !important;
  content: none !important;
}

.scorecard-form.has-step-scroll::before,
.scorecard-form.has-step-scroll::after {
  position: absolute;
  left: 0;
  right: 0;
  z-index: 20;
  pointer-events: none;
}

.scorecard-form.has-step-scroll:not(.step-at-top)::before {
  content: "";
  top: calc(var(--score-progress-height) + 8px);
  height: 34px;
  background: linear-gradient(180deg, var(--paper) 8%, rgba(255, 255, 255, 0));
}

.scorecard-form.has-step-scroll:not(.step-at-bottom)::after {
  content: "Scroll for more";
  bottom: var(--score-actions-height);
  height: 72px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 12px;
  color: var(--red);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0), var(--paper) 72%);
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

body.dark-mode .scorecard-form.has-step-scroll:not(.step-at-top)::before {
  background: linear-gradient(180deg, #0b0d10 8%, rgba(11, 13, 16, 0));
}

body.dark-mode .scorecard-form.has-step-scroll:not(.step-at-bottom)::after {
  background: linear-gradient(180deg, rgba(11, 13, 16, 0), #0b0d10 72%);
}

.scorecard-actions {
  z-index: 30;
  min-height: var(--score-actions-height);
  padding-top: 12px !important;
  border-top: 1px solid var(--line) !important;
  background: var(--paper) !important;
  box-shadow: 0 -18px 34px rgba(255, 255, 255, 0.92) !important;
}

body.dark-mode .scorecard-actions {
  background: #0b0d10 !important;
  box-shadow: 0 -18px 34px rgba(11, 13, 16, 0.92) !important;
}

@media (max-width: 680px) {
  .latest-heading {
    gap: 16px;
    margin-bottom: 22px !important;
  }

  .scorecard-dialog {
    width: min(100% - 16px, 860px) !important;
    height: 92svh !important;
    max-height: 92svh !important;
  }

  .scorecard-main {
    padding: 14px !important;
  }

  .scorecard-header {
    margin-bottom: 8px !important;
  }

  .scorecard-header h2 {
    font-size: clamp(1.35rem, 7vw, 1.95rem) !important;
  }

  .scorecard-header p {
    font-size: 0.82rem;
  }

  .scorecard-form {
    --score-progress-height: 42px;
    --score-actions-height: 68px;
  }

  .scorecard-progress span {
    min-height: 38px;
    padding: 0 10px;
    font-size: 0.66rem;
  }

  .scorecard-actions {
    min-height: var(--score-actions-height);
    padding-top: 10px !important;
  }

  .scorecard-form.has-step-scroll:not(.step-at-bottom)::after {
    height: 58px;
    padding-bottom: 9px;
    font-size: 0.66rem;
  }

}

/* Scorecard refinement: slimmer progress, solid states, flush footer, submit loading */
.scorecard-main {
  --score-pad: clamp(18px, 3vw, 30px);
  padding: var(--score-pad) !important;
}

.scorecard-form {
  --score-progress-height: 34px;
  --score-actions-height: 60px;
}

.scorecard-progress {
  min-height: var(--score-progress-height) !important;
  gap: 7px !important;
  margin-bottom: 10px !important;
}

.scorecard-progress span,
body.dark-mode .scorecard-progress span {
  min-height: 30px !important;
  padding: 0 12px !important;
  border-radius: 9px !important;
  color: var(--muted) !important;
  border-color: var(--line) !important;
  background: #ffffff !important;
  background-image: none !important;
  background-size: auto !important;
  font-size: 0.62rem !important;
  line-height: 1 !important;
  box-shadow: none !important;
}

.scorecard-progress span.is-active,
body.dark-mode .scorecard-progress span.is-active {
  color: var(--red) !important;
  border-color: rgba(0, 191, 255, 0.46) !important;
  background: #ffffff !important;
  background-image: none !important;
  box-shadow: inset 0 0 0 1px rgba(0, 191, 255, 0.08) !important;
}

.scorecard-progress span.is-complete,
body.dark-mode .scorecard-progress span.is-complete {
  color: #168454 !important;
  border-color: rgba(40, 184, 121, 0.42) !important;
  background: #ffffff !important;
  background-image: none !important;
  box-shadow: none !important;
}

body.dark-mode .scorecard-progress span,
body.dark-mode .scorecard-progress span.is-active,
body.dark-mode .scorecard-progress span.is-complete {
  background: #0b0d10 !important;
}

body.dark-mode .scorecard-progress span.is-active {
  color: #7DD3FC !important;
  border-color: rgba(56, 189, 248, 0.5) !important;
}

body.dark-mode .scorecard-progress span.is-complete {
  color: rgba(191, 255, 222, 0.95) !important;
  border-color: rgba(40, 184, 121, 0.48) !important;
}

.scorecard-actions {
  min-height: var(--score-actions-height) !important;
  align-items: center !important;
  margin: 10px calc(var(--score-pad) * -1) calc(var(--score-pad) * -1) !important;
  padding: 10px var(--score-pad) !important;
  border-top: 1px solid var(--line) !important;
  background: #ffffff !important;
  box-shadow: 0 -16px 30px rgba(255, 255, 255, 0.94) !important;
}

body.dark-mode .scorecard-actions {
  background: #0b0d10 !important;
  box-shadow: 0 -16px 30px rgba(11, 13, 16, 0.94) !important;
}

.scorecard-actions button {
  min-height: 38px !important;
  padding: 0 14px !important;
  border-radius: 10px !important;
  font-size: 0.8rem !important;
}

.scorecard-form.has-step-scroll:not(.step-at-bottom)::after {
  bottom: var(--score-actions-height) !important;
}

.scorecard-form.is-loading .score-step,
.scorecard-form.is-loading .scorecard-progress {
  pointer-events: none;
}

.scorecard-form.is-loading .score-step {
  opacity: 0.68;
}

.scorecard-form.is-loading .scorecard-submit {
  position: relative;
  overflow: hidden;
  color: #ffffff !important;
}

.scorecard-form.is-loading .scorecard-submit::after {
  content: "";
  position: absolute;
  inset: 2px;
  border-radius: inherit;
  padding: 1px;
  background: conic-gradient(from var(--cta-angle, 0deg), transparent 0 68%, rgba(125, 211, 252, 0.95) 78%, rgba(255, 255, 255, 0.92) 84%, transparent 94% 100%);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  animation: ctaBorderOrbit 1.25s linear infinite;
  pointer-events: none;
}

.scorecard-modal.is-loading .scorecard-dialog::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
  padding: 1px;
  background: conic-gradient(from var(--cta-angle, 0deg), transparent 0 72%, rgba(0, 191, 255, 0.7) 80%, rgba(255, 255, 255, 0.85) 86%, transparent 94% 100%);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  animation: ctaBorderOrbit 1.35s linear infinite;
  pointer-events: none;
}

.scorecard-modal.is-loading .scorecard-close {
  z-index: 3;
}

@media (max-width: 680px) {
  .scorecard-main {
    --score-pad: 14px;
  }

  .scorecard-form {
    --score-progress-height: 32px;
    --score-actions-height: 58px;
  }

  .scorecard-progress {
    gap: 6px !important;
  }

  .scorecard-progress span {
    min-height: 28px !important;
    padding: 0 8px !important;
    font-size: 0.58rem !important;
  }

  .scorecard-actions button {
    min-height: 36px !important;
    padding: 0 11px !important;
    font-size: 0.76rem !important;
  }
}

/* Scorecard repair: strict fixed footer, fixed scroll cue, modal-border processing */
.scorecard-dialog {
  position: relative !important;
  overflow: hidden !important;
}

.scorecard-main {
  --score-pad: clamp(18px, 3vw, 30px);
  display: grid !important;
  grid-template-rows: auto minmax(0, 1fr) !important;
  height: 100% !important;
  min-height: 0 !important;
  padding: var(--score-pad) var(--score-pad) 0 !important;
  overflow: hidden !important;
}

.scorecard-form {
  --score-progress-height: 34px;
  --score-actions-height: 58px;
  display: grid !important;
  grid-template-rows: auto minmax(0, 1fr) var(--score-actions-height) !important;
  height: 100% !important;
  min-height: 0 !important;
  overflow: hidden !important;
}

.scorecard-progress {
  min-height: var(--score-progress-height) !important;
  margin: 0 0 10px !important;
}

.score-step.is-active {
  min-height: 0 !important;
  overflow-y: auto !important;
  padding: 12px 8px 20px 0 !important;
}

.scorecard-actions {
  position: relative !important;
  z-index: 30 !important;
  min-height: var(--score-actions-height) !important;
  align-self: stretch !important;
  align-items: center !important;
  margin: 0 calc(var(--score-pad) * -1) !important;
  padding: 9px var(--score-pad) !important;
  border-top: 1px solid var(--line) !important;
  background: #ffffff !important;
  box-shadow: 0 -18px 34px rgba(255, 255, 255, 0.96) !important;
}

body.dark-mode .scorecard-actions {
  background: #0b0d10 !important;
  box-shadow: 0 -18px 34px rgba(11, 13, 16, 0.96) !important;
}

.scorecard-actions button {
  min-height: 36px !important;
  padding: 0 13px !important;
  border-radius: 10px !important;
  font-size: 0.78rem !important;
}

.scorecard-form.has-step-scroll::before,
.scorecard-form.has-step-scroll::after {
  position: absolute !important;
  left: 0 !important;
  right: 0 !important;
  z-index: 24 !important;
  pointer-events: none !important;
}

.scorecard-form.has-step-scroll:not(.step-at-top)::before {
  content: "" !important;
  top: calc(var(--score-progress-height) + 10px) !important;
  height: 34px !important;
  background: linear-gradient(180deg, #ffffff 8%, rgba(255, 255, 255, 0)) !important;
}

.scorecard-form.has-step-scroll:not(.step-at-bottom)::after {
  content: "Scroll for more" !important;
  bottom: var(--score-actions-height) !important;
  height: 78px !important;
  display: flex !important;
  align-items: flex-end !important;
  justify-content: center !important;
  padding-bottom: 12px !important;
  color: var(--red) !important;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0), #ffffff 78%) !important;
  border-radius: 0 !important;
  font-size: 0.68rem !important;
  font-weight: 900 !important;
  letter-spacing: 0.04em !important;
  text-transform: uppercase !important;
}

body.dark-mode .scorecard-form.has-step-scroll:not(.step-at-top)::before {
  background: linear-gradient(180deg, #0b0d10 8%, rgba(11, 13, 16, 0)) !important;
}

body.dark-mode .scorecard-form.has-step-scroll:not(.step-at-bottom)::after {
  background: linear-gradient(180deg, rgba(11, 13, 16, 0), #0b0d10 78%) !important;
}

.scorecard-form.is-loading .scorecard-submit::after {
  content: none !important;
  display: none !important;
}

.scorecard-modal.is-loading .scorecard-dialog {
  border-color: transparent !important;
}

.scorecard-modal.is-loading .scorecard-dialog::after {
  content: "" !important;
  position: absolute !important;
  inset: 0 !important;
  z-index: 60 !important;
  display: block !important;
  border-radius: inherit !important;
  padding: 2px !important;
  background: conic-gradient(from var(--cta-angle, 0deg), transparent 0 68%, rgba(0, 191, 255, 0.18) 74%, rgba(0, 191, 255, 0.95) 80%, rgba(255, 255, 255, 0.95) 84%, rgba(56, 189, 248, 0.92) 88%, transparent 96% 100%) !important;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0) !important;
  mask-composite: exclude !important;
  animation: ctaBorderOrbit 1.1s linear infinite !important;
  pointer-events: none !important;
}

.scorecard-modal.is-loading .scorecard-close {
  z-index: 70 !important;
}

@media (max-width: 680px) {
  .scorecard-main {
    --score-pad: 14px;
  }

  .scorecard-form {
    --score-progress-height: 32px;
    --score-actions-height: 56px;
  }

  .scorecard-actions {
    padding: 8px var(--score-pad) !important;
  }

  .scorecard-actions button {
    min-height: 34px !important;
    padding: 0 10px !important;
    font-size: 0.74rem !important;
  }

  .scorecard-form.has-step-scroll:not(.step-at-bottom)::after {
    height: 68px !important;
    padding-bottom: 10px !important;
  }
}

/* Scorecard send polish: connected progress, solid content surface, visible modal-border send */
.scorecard-progress {
  position: relative !important;
  isolation: isolate;
}

.scorecard-progress::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: 8px;
  right: 8px;
  top: 50%;
  height: 1px;
  transform: translateY(-50%);
  background: var(--line);
}

.scorecard-progress span,
body.dark-mode .scorecard-progress span {
  position: relative;
  background: #ffffff !important;
}

body.dark-mode .scorecard-progress span {
  background: #0b0d10 !important;
}

.scorecard-progress span.is-active::after {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 5px;
  height: 2px;
  border-radius: 99px;
  background: currentColor;
  opacity: 0.7;
}

.score-step legend {
  display: none !important;
}

.score-step.is-active {
  background: #ffffff !important;
  background-image: none !important;
  border-radius: 14px;
}

body.dark-mode .score-step.is-active {
  background: #0b0d10 !important;
}

.scorecard-form.has-step-scroll:not(.step-at-top)::before {
  top: calc(var(--score-progress-height) + 10px) !important;
  background: linear-gradient(180deg, #ffffff 12%, rgba(255, 255, 255, 0)) !important;
}

.scorecard-form.has-step-scroll:not(.step-at-bottom)::after {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0), #ffffff 78%) !important;
}

body.dark-mode .scorecard-form.has-step-scroll:not(.step-at-top)::before {
  background: linear-gradient(180deg, #0b0d10 12%, rgba(11, 13, 16, 0)) !important;
}

body.dark-mode .scorecard-form.has-step-scroll:not(.step-at-bottom)::after {
  background: linear-gradient(180deg, rgba(11, 13, 16, 0), #0b0d10 78%) !important;
}

.scorecard-form.is-loading {
  pointer-events: none;
  animation: scorecardSendAway 980ms cubic-bezier(0.55, 0, 0.2, 1) 320ms forwards !important;
  will-change: transform, opacity, filter;
}

.scorecard-form.is-loading .score-step,
.scorecard-form.is-loading .scorecard-progress,
.scorecard-form.is-loading .scorecard-actions {
  opacity: 1 !important;
}

.scorecard-modal.is-loading .scorecard-backdrop,
.scorecard-modal.is-loading .scorecard-close {
  cursor: wait !important;
}

.scorecard-modal.is-loading .scorecard-dialog::after {
  background: conic-gradient(from var(--cta-angle, 0deg), transparent 0 62%, rgba(0, 191, 255, 0.34) 70%, rgba(0, 191, 255, 1) 78%, rgba(255, 255, 255, 1) 83%, rgba(56, 189, 248, 1) 88%, transparent 96% 100%) !important;
  animation: ctaBorderOrbit 620ms linear infinite !important;
}

body.dark-mode .scorecard-modal.is-loading .scorecard-dialog::after {
  background: conic-gradient(from var(--cta-angle, 0deg), transparent 0 62%, rgba(56, 189, 248, 0.3) 70%, rgba(56, 189, 248, 1) 78%, rgba(255, 255, 255, 0.92) 83%, rgba(125, 211, 252, 1) 88%, transparent 96% 100%) !important;
}

@keyframes scorecardSendAway {
  0% {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
    filter: blur(0);
  }
  48% {
    opacity: 0.92;
    transform: translate3d(8px, -10px, 0) scale(0.96);
    filter: blur(0);
  }
  100% {
    opacity: 0;
    transform: translate3d(56vw, -34vh, 0) scale(0.42) rotate(3deg);
    filter: blur(7px);
  }
}

@media (max-width: 680px) {
  .scorecard-progress::before {
    left: 4px;
    right: 4px;
  }

  .scorecard-progress span.is-active::after {
    left: 8px;
    right: 8px;
    bottom: 4px;
  }

  @keyframes scorecardSendAway {
    0% {
      opacity: 1;
      transform: translate3d(0, 0, 0) scale(1);
      filter: blur(0);
    }
    100% {
      opacity: 0;
      transform: translate3d(58vw, -30vh, 0) scale(0.5) rotate(3deg);
      filter: blur(6px);
    }
  }
}

/* Scorecard final override: solid body, clean progress, modal-only send finish */
.scorecard-form {
  margin: 0 calc(var(--score-pad) * -1) !important;
  padding: 0 var(--score-pad) !important;
  background: #ffffff !important;
}

body.dark-mode .scorecard-form {
  background: #0b0d10 !important;
}

.scorecard-progress {
  padding-top: 2px !important;
}

.scorecard-progress::before,
.scorecard-progress span.is-active::after {
  content: none !important;
  display: none !important;
}

.scorecard-progress span {
  cursor: pointer;
  user-select: none;
}

.scorecard-progress span:hover,
.scorecard-progress span:focus-visible {
  border-color: rgba(0, 191, 255, 0.34) !important;
  box-shadow: inset 0 0 0 1px rgba(0, 191, 255, 0.06), 0 8px 18px rgba(15, 23, 42, 0.055) !important;
  outline: none;
}

.scorecard-progress span.is-active,
body.dark-mode .scorecard-progress span.is-active {
  color: var(--red) !important;
  border-color: rgba(0, 191, 255, 0.54) !important;
  background: #ffffff !important;
  box-shadow: inset 0 0 0 1px rgba(0, 191, 255, 0.1), 0 8px 20px rgba(0, 191, 255, 0.08) !important;
}

body.dark-mode .scorecard-progress span.is-active {
  color: #7DD3FC !important;
  background: #0b0d10 !important;
  border-color: rgba(56, 189, 248, 0.58) !important;
  box-shadow: inset 0 0 0 1px rgba(56, 189, 248, 0.12), 0 8px 20px rgba(56, 189, 248, 0.1) !important;
}

.scorecard-progress span.is-complete,
body.dark-mode .scorecard-progress span.is-complete {
  background: #ffffff !important;
  box-shadow: none !important;
}

body.dark-mode .scorecard-progress span.is-complete {
  background: #0b0d10 !important;
}

.scorecard-actions {
  margin: 0 calc(var(--score-pad) * -1) !important;
}

.score-step.is-active {
  border-radius: 0 !important;
}

.scorecard-form.has-step-scroll:not(.step-at-top)::before,
.scorecard-form.has-step-scroll:not(.step-at-bottom)::after {
  left: calc(var(--score-pad) * -1) !important;
  right: calc(var(--score-pad) * -1) !important;
}

.scorecard-form.is-loading {
  animation: none !important;
  transform: none !important;
  opacity: 1 !important;
  filter: none !important;
}

.scorecard-modal.is-loading .scorecard-dialog::after {
  background: conic-gradient(from var(--cta-angle, 0deg), transparent 0 48%, rgba(0, 191, 255, 0.16) 58%, rgba(0, 191, 255, 1) 70%, rgba(255, 255, 255, 1) 77%, rgba(56, 189, 248, 1) 84%, transparent 96% 100%) !important;
  animation: ctaBorderOrbit 500ms linear infinite !important;
}

.scorecard-modal.is-finishing .scorecard-dialog {
  animation: scorecardModalSendAway 720ms cubic-bezier(0.55, 0, 0.2, 1) forwards !important;
  will-change: transform, opacity, filter;
}

@keyframes scorecardModalSendAway {
  0% {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
    filter: blur(0);
  }
  40% {
    opacity: 0.96;
    transform: translate3d(10px, -12px, 0) scale(0.985);
    filter: blur(0);
  }
  100% {
    opacity: 0;
    transform: translate3d(42vw, -34vh, 0) scale(0.62) rotate(2deg);
    filter: blur(8px);
  }
}

@media (max-width: 680px) {
  .scorecard-form {
    margin: 0 calc(var(--score-pad) * -1) !important;
    padding: 0 var(--score-pad) !important;
  }

  @keyframes scorecardModalSendAway {
    0% {
      opacity: 1;
      transform: translate3d(0, 0, 0) scale(1);
      filter: blur(0);
    }
    100% {
      opacity: 0;
      transform: translate3d(48vw, -30vh, 0) scale(0.68) rotate(2deg);
      filter: blur(7px);
    }
  }
}

/* Scorecard terminal override: validation + reverse-pop finish */
.scorecard-status {
  position: absolute !important;
  left: var(--score-pad) !important;
  right: var(--score-pad) !important;
  bottom: calc(var(--score-actions-height) + 8px) !important;
  z-index: 45 !important;
  display: flex !important;
  min-height: 30px;
  align-items: center;
  justify-content: center;
  margin: 0 !important;
  padding: 0 12px;
  border: 1px solid rgba(0, 191, 255, 0.22);
  border-radius: 999px;
  color: var(--red) !important;
  background: #ffffff !important;
  font-size: 0.72rem !important;
  font-weight: 850;
  line-height: 1;
  text-align: center;
  text-transform: uppercase;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

.scorecard-status:empty {
  display: none !important;
}

body.dark-mode .scorecard-status {
  border-color: rgba(56, 189, 248, 0.28);
  background: #0b0d10 !important;
}

.score-step.has-validation-error {
  animation: scoreStepNudge 220ms ease-out 0s 2;
}

@keyframes scoreStepNudge {
  0%, 100% { transform: translateX(0); }
  35% { transform: translateX(-4px); }
  70% { transform: translateX(4px); }
}

.scorecard-modal.is-loading .scorecard-dialog::after {
  animation: scorecardBorderPulse 1.35s linear infinite !important;
}

@keyframes scorecardBorderPulse {
  0% { --cta-angle: 0deg; }
  26% { --cta-angle: 360deg; }
  100% { --cta-angle: 360deg; }
}

.scorecard-modal.is-finishing .scorecard-dialog {
  animation: scorecardModalSendAway 480ms cubic-bezier(0.5, 0, 0.15, 1) forwards !important;
  transform-origin: 50% 50%;
}

@keyframes scorecardModalSendAway {
  0% {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
    filter: blur(0);
  }
  100% {
    opacity: 0;
    transform: translate3d(0, -10px, 0) scale(0);
    filter: blur(4px);
  }
}

/* Terminal accent + scorecard UX override */
:root {
  --red: #00BFFF !important;
  --red-deep: #0099CC !important;
  --red-soft: rgba(0, 191, 255, 0.1) !important;
  --blue: #00BFFF !important;
  --blue-soft: rgba(0, 191, 255, 0.08) !important;
  --validation-red: #E5484D;
}

body.dark-mode {
  --red: #38D5FF !important;
  --red-deep: #7DE7FF !important;
  --red-soft: rgba(0, 191, 255, 0.14) !important;
  --blue-soft: rgba(0, 191, 255, 0.14) !important;
}

.audience-grid button.is-active,
.audience-grid button:hover,
.audience-grid button:focus-visible {
  color: var(--ink) !important;
  border-color: rgba(0, 191, 255, 0.42) !important;
  background: linear-gradient(135deg, rgba(0, 191, 255, 0.16), rgba(0, 191, 255, 0.045)) !important;
  box-shadow: 0 12px 30px rgba(0, 191, 255, 0.12) !important;
}

.scorecard-progress {
  position: relative !important;
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 0 !important;
  padding: 2px !important;
  border: 1px solid var(--line) !important;
  border-radius: 13px !important;
  background: #ffffff !important;
}

body.dark-mode .scorecard-progress {
  background: #0b0d10 !important;
}

.scorecard-progress::before,
.scorecard-progress span.is-active::after {
  content: none !important;
  display: none !important;
}

.scorecard-progress span,
body.dark-mode .scorecard-progress span {
  min-height: 34px !important;
  padding: 0 12px !important;
  border: 0 !important;
  border-radius: 10px !important;
  color: var(--muted) !important;
  background: transparent !important;
  font-size: 0.72rem !important;
  font-weight: 850 !important;
  box-shadow: none !important;
  cursor: pointer;
}

.scorecard-progress span + span {
  border-left: 1px solid var(--line) !important;
}

.scorecard-progress span.is-active,
body.dark-mode .scorecard-progress span.is-active {
  color: #001018 !important;
  background: #00BFFF !important;
  box-shadow: 0 8px 22px rgba(0, 191, 255, 0.22) !important;
}

body.dark-mode .scorecard-progress span.is-active {
  color: #001018 !important;
  background: #38D5FF !important;
}

.scorecard-progress span.is-complete,
body.dark-mode .scorecard-progress span.is-complete {
  color: #12845A !important;
  background: rgba(40, 184, 121, 0.09) !important;
}

.scorecard-progress span.is-complete::before {
  content: none !important;
}

.scorecard-status {
  left: var(--score-pad) !important;
  right: auto !important;
  bottom: 12px !important;
  z-index: 45 !important;
  display: inline-flex !important;
  width: min(48%, 390px) !important;
  min-height: 34px !important;
  justify-content: flex-start !important;
  padding: 0 14px !important;
  border-color: rgba(0, 191, 255, 0.28) !important;
  color: var(--red) !important;
  background: #ffffff !important;
  text-align: left !important;
  box-shadow: none !important;
}

.scorecard-status:empty {
  display: none !important;
}

.scorecard-status.is-error {
  color: var(--validation-red) !important;
  border-color: rgba(229, 72, 77, 0.34) !important;
  background: rgba(229, 72, 77, 0.06) !important;
}

body.dark-mode .scorecard-status {
  background: #0b0d10 !important;
}

.field-block.is-required-empty textarea,
.field-block.is-required-empty input,
.field-block.is-required-empty select,
.choice-group.is-required-empty label {
  border-color: rgba(229, 72, 77, 0.7) !important;
  box-shadow: 0 0 0 3px rgba(229, 72, 77, 0.08) !important;
}

.choice-group.is-required-empty > span,
.field-block.is-required-empty > span {
  color: var(--validation-red) !important;
}

.scorecard-form.has-step-scroll:not(.step-at-bottom)::after {
  color: var(--red) !important;
  animation: scrollCueBounce 1.15s ease-in-out infinite !important;
}

@keyframes scrollCueBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}

.scorecard-modal.is-loading .scorecard-dialog::after {
  background: conic-gradient(from var(--cta-angle, 0deg), transparent 0 34%, rgba(0, 191, 255, 0.35) 48%, #00BFFF 60%, #ffffff 68%, #38D5FF 76%, transparent 90% 100%) !important;
  animation: scorecardBorderPulse 1.35s linear infinite !important;
  padding: 3px !important;
}

body.dark-mode .scorecard-modal.is-loading .scorecard-dialog::after {
  background: conic-gradient(from var(--cta-angle, 0deg), transparent 0 34%, rgba(56, 213, 255, 0.28) 48%, #38D5FF 60%, rgba(255,255,255,0.95) 68%, #7DE7FF 76%, transparent 90% 100%) !important;
}

@keyframes scorecardBorderPulse {
  0% { --cta-angle: 0deg; opacity: 1; }
  22% { --cta-angle: 360deg; opacity: 1; }
  34% { --cta-angle: 360deg; opacity: 0; }
  100% { --cta-angle: 360deg; opacity: 0; }
}

.scorecard-modal.is-finishing .scorecard-dialog {
  animation: scorecardModalSendAway 480ms cubic-bezier(0.5, 0, 0.15, 1) forwards !important;
}

@keyframes scorecardModalSendAway {
  0% { opacity: 1; transform: translate3d(0, 0, 0) scale(1); filter: blur(0); }
  100% { opacity: 0; transform: translate3d(0, -10px, 0) scale(0); filter: blur(4px); }
}

.score-step[data-score-step="1"] .choice-group {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.score-step[data-score-step="1"] .choice-group > span {
  grid-column: 1 / -1;
}

@media (max-width: 680px) {
  .scorecard-status {
    width: calc(100% - (var(--score-pad) * 2) - 130px) !important;
    min-height: 32px !important;
    font-size: 0.62rem !important;
  }

  .scorecard-progress span,
  body.dark-mode .scorecard-progress span {
    min-height: 32px !important;
    padding: 0 7px !important;
    font-size: 0.62rem !important;
  }

  .score-step[data-score-step="1"] .choice-group {
    grid-template-columns: 1fr;
  }
}



/* Terminal button sizing override */
.scorecard-actions button {
  min-height: 42px !important;
  padding: 0 16px !important;
  border-radius: 11px !important;
  font-size: 0.84rem !important;
}

@media (max-width: 680px) {
  .scorecard-actions button {
    min-height: 38px !important;
    padding: 0 12px !important;
    font-size: 0.76rem !important;
  }
}

/* Final interaction polish: lighter scorecard progress, title-only validation, stable CTA hover */
.eyebrow,
.section-kicker {
  color: #0b0d10 !important;
}

body.dark-mode .eyebrow,
body.dark-mode .section-kicker {
  color: rgba(247, 247, 248, 0.68) !important;
}

.scorecard-progress,
body.dark-mode .scorecard-progress {
  gap: 0 !important;
  overflow: hidden !important;
  background: var(--surface) !important;
  border-color: var(--line) !important;
  box-shadow: none !important;
}

.scorecard-progress span,
body.dark-mode .scorecard-progress span,
.scorecard-progress span.is-active,
body.dark-mode .scorecard-progress span.is-active,
.scorecard-progress span.is-complete,
body.dark-mode .scorecard-progress span.is-complete {
  position: relative !important;
  min-height: 34px !important;
  color: var(--muted) !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

.scorecard-progress span:hover,
.scorecard-progress span:focus-visible {
  color: var(--ink) !important;
  background: transparent !important;
  box-shadow: inset 0 0 0 1px rgba(0, 191, 255, 0.18) !important;
}

.scorecard-progress span.is-active,
body.dark-mode .scorecard-progress span.is-active {
  color: var(--ink) !important;
}

.scorecard-progress span.is-active::after,
body.dark-mode .scorecard-progress span.is-active::after {
  content: "" !important;
  display: block !important;
  position: absolute !important;
  left: 12px !important;
  right: 12px !important;
  bottom: 5px !important;
  height: 2px !important;
  border-radius: 999px !important;
  background: var(--red) !important;
  opacity: 1 !important;
}

.scorecard-progress span.is-complete,
body.dark-mode .scorecard-progress span.is-complete {
  color: var(--ink) !important;
}

.scorecard-progress span.is-complete::before {
  content: "" !important;
  display: inline-block !important;
  width: 7px !important;
  height: 7px !important;
  margin-right: 7px !important;
  border-radius: 999px !important;
  background: #20c47a !important;
  vertical-align: 1px !important;
}

.scorecard-status,
body.dark-mode .scorecard-status {
  min-height: 28px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  color: var(--red) !important;
  background: transparent !important;
  box-shadow: none !important;
}

.scorecard-status.is-error {
  color: var(--validation-red) !important;
  background: transparent !important;
  border: 0 !important;
}

.field-block.is-required-empty textarea,
.field-block.is-required-empty input,
.field-block.is-required-empty select,
.choice-group.is-required-empty label {
  border-color: var(--line) !important;
  box-shadow: none !important;
}

body.dark-mode .field-block.is-required-empty textarea,
body.dark-mode .field-block.is-required-empty input,
body.dark-mode .field-block.is-required-empty select,
body.dark-mode .choice-group.is-required-empty label {
  border-color: var(--line) !important;
  box-shadow: none !important;
}

.choice-group.is-required-empty > span,
.field-block.is-required-empty > span {
  color: var(--validation-red) !important;
}

.scorecard-actions {
  padding-top: 14px !important;
  padding-bottom: 14px !important;
}

.header-cta,
.button-primary {
  position: relative !important;
  color: #001018 !important;
  background: var(--red) !important;
  border-color: var(--red) !important;
  overflow: hidden !important;
}

.header-cta::before,
.header-cta::after,
.button-primary::before,
.button-primary::after {
  content: none !important;
  display: none !important;
}

.header-cta:hover,
.header-cta:focus-visible,
.button-primary:hover,
.button-primary:focus-visible {
  color: #001018 !important;
  background: #38D5FF !important;
  border-color: #38D5FF !important;
  box-shadow: 0 12px 30px rgba(0, 191, 255, 0.22), inset 0 0 0 1px rgba(255, 255, 255, 0.28) !important;
}

body.dark-mode .header-cta,
body.dark-mode .button-primary,
body.dark-mode .header-cta:hover,
body.dark-mode .header-cta:focus-visible,
body.dark-mode .button-primary:hover,
body.dark-mode .button-primary:focus-visible {
  color: #001018 !important;
}

/* Final scorecard/CTA refinement */
.scorecard-progress span::after,
.scorecard-progress span.is-active::after,
body.dark-mode .scorecard-progress span.is-active::after {
  content: "" !important;
  display: inline-block !important;
  position: static !important;
  width: 7px !important;
  height: 7px !important;
  margin-left: 7px !important;
  border-radius: 999px !important;
  background: rgba(107, 114, 128, 0.46) !important;
  opacity: 1 !important;
  vertical-align: 1px !important;
}

.scorecard-progress span.is-complete::after {
  background: #20c47a !important;
}

.scorecard-progress span.is-complete::before {
  content: none !important;
  display: none !important;
}

.scorecard-actions {
  padding-top: 18px !important;
  padding-bottom: 18px !important;
}

.scorecard-status,
body.dark-mode .scorecard-status {
  left: var(--score-pad) !important;
  right: auto !important;
  bottom: 18px !important;
  width: min(48%, 390px) !important;
  justify-content: flex-start !important;
  color: #0b0d10 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

body.dark-mode .scorecard-status {
  color: #f7f7f8 !important;
}

.scorecard-status.is-error,
body.dark-mode .scorecard-status.is-error {
  color: var(--validation-red) !important;
}

.scorecard-modal.is-loading .scorecard-dialog::after,
body.dark-mode .scorecard-modal.is-loading .scorecard-dialog::after {
  background: linear-gradient(135deg, rgba(0, 191, 255, 0.22), rgba(255, 255, 255, 0.96), rgba(56, 213, 255, 0.4), rgba(0, 191, 255, 0.22)) !important;
  animation: scorecardBorderPulseFade 1.15s ease-in-out infinite !important;
  padding: 3px !important;
}

body.dark-mode .scorecard-modal.is-loading .scorecard-dialog::after {
  background: linear-gradient(135deg, rgba(56, 213, 255, 0.28), rgba(255, 255, 255, 0.86), rgba(125, 231, 255, 0.48), rgba(56, 213, 255, 0.28)) !important;
}

@keyframes scorecardBorderPulseFade {
  0%, 100% {
    opacity: 0.28;
    filter: saturate(0.9);
  }
  48% {
    opacity: 1;
    filter: saturate(1.35);
  }
}

.header-cta,
.button-primary {
  position: relative !important;
  color: #001018 !important;
  background: linear-gradient(135deg, #00BFFF, #7DE7FF) !important;
  border-color: rgba(0, 191, 255, 0.7) !important;
  box-shadow: 0 14px 34px rgba(0, 191, 255, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.36) !important;
  isolation: isolate;
  overflow: hidden !important;
}

.header-cta::before,
.button-primary::before {
  content: "" !important;
  display: block !important;
  position: absolute !important;
  inset: -2px !important;
  z-index: 0 !important;
  background: linear-gradient(115deg, transparent 20%, rgba(255, 255, 255, 0.34) 42%, transparent 62%) !important;
  transform: translateX(-110%) !important;
  opacity: 0 !important;
  transition: transform 620ms ease, opacity 180ms ease !important;
  pointer-events: none !important;
}

.header-cta::after,
.button-primary::after {
  content: none !important;
  display: none !important;
}

.header-cta:hover::before,
.header-cta:focus-visible::before,
.button-primary:hover::before,
.button-primary:focus-visible::before {
  transform: translateX(110%) !important;
  opacity: 0.7 !important;
}

.header-cta:hover,
.header-cta:focus-visible,
.button-primary:hover,
.button-primary:focus-visible {
  color: #001018 !important;
  background: linear-gradient(135deg, #38D5FF, #B8F3FF) !important;
  border-color: rgba(0, 191, 255, 0.86) !important;
  box-shadow: 0 16px 40px rgba(0, 191, 255, 0.26), inset 0 1px 0 rgba(255, 255, 255, 0.42) !important;
}

/* Final CTA/modal correction pass */
.scorecard-modal-eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin: 0 0 14px;
  padding: 7px 11px;
  border: 1px solid rgba(0, 191, 255, 0.22);
  border-radius: 999px;
  color: #0b0d10;
  background: rgba(0, 191, 255, 0.06);
  font-size: 0.72rem;
  font-weight: 850;
  line-height: 1;
  text-transform: uppercase;
}

body.dark-mode .scorecard-modal-eyebrow {
  color: rgba(247, 247, 248, 0.72);
  background: rgba(0, 191, 255, 0.1);
  border-color: rgba(56, 213, 255, 0.24);
}

.scorecard-progress span::before,
.scorecard-progress span.is-complete::before,
body.dark-mode .scorecard-progress span::before,
body.dark-mode .scorecard-progress span.is-complete::before {
  content: "" !important;
  display: inline-block !important;
  width: 7px !important;
  height: 7px !important;
  margin-right: 8px !important;
  border-radius: 999px !important;
  background: rgba(107, 114, 128, 0.48) !important;
  vertical-align: 1px !important;
}

.scorecard-progress span.is-complete::before,
body.dark-mode .scorecard-progress span.is-complete::before {
  background: #20c47a !important;
}

.scorecard-progress span::after,
.scorecard-progress span.is-active::after,
.scorecard-progress span.is-complete::after,
body.dark-mode .scorecard-progress span::after,
body.dark-mode .scorecard-progress span.is-active::after,
body.dark-mode .scorecard-progress span.is-complete::after {
  content: none !important;
  display: none !important;
}

.scorecard-actions {
  min-height: 86px !important;
  padding-top: 22px !important;
  padding-bottom: 22px !important;
}

.scorecard-actions button {
  min-height: 44px !important;
}

.scorecard-status,
body.dark-mode .scorecard-status {
  bottom: 24px !important;
}

.scorecard-status.is-error,
body.dark-mode .scorecard-status.is-error {
  color: var(--validation-red) !important;
}

.scorecard-modal.is-loading .scorecard-dialog {
  box-shadow: 0 28px 90px rgba(0, 191, 255, 0.26), 0 0 0 1px rgba(0, 191, 255, 0.3) !important;
}

.scorecard-modal.is-loading .scorecard-dialog::after {
  background: #00BFFF !important;
  animation: scorecardBorderPulseFade 900ms ease-in-out infinite !important;
  padding: 4px !important;
}

body.dark-mode .scorecard-modal.is-loading .scorecard-dialog::after {
  background: #38D5FF !important;
}

/* Modal footer sizing fix: keep the fixed action row tall enough for its padding */
.scorecard-form {
  --score-actions-height: 92px !important;
}

.scorecard-actions {
  min-height: var(--score-actions-height) !important;
  padding-top: 18px !important;
  padding-bottom: 18px !important;
  align-items: center !important;
}

.scorecard-actions button {
  min-height: 46px !important;
}

.scorecard-status,
body.dark-mode .scorecard-status {
  bottom: 28px !important;
}

.scorecard-form.has-step-scroll:not(.step-at-bottom)::after {
  bottom: var(--score-actions-height) !important;
}

@media (max-width: 680px) {
  .scorecard-form {
    --score-actions-height: 84px !important;
  }

  .scorecard-actions {
    padding-top: 14px !important;
    padding-bottom: 14px !important;
  }

  .scorecard-actions button {
    min-height: 42px !important;
  }
}


@keyframes scorecardBorderPulseFade {
  0%, 100% {
    opacity: 0.18;
  }
  45% {
    opacity: 1;
  }
}

/* Final requested tweaks: moving submit border + no tab borders */
.scorecard-progress,
body.dark-mode .scorecard-progress {
  border-color: transparent !important;
  background: var(--surface) !important;
}

.scorecard-progress span,
body.dark-mode .scorecard-progress span,
.scorecard-progress span.is-active,
body.dark-mode .scorecard-progress span.is-active,
.scorecard-progress span.is-complete,
body.dark-mode .scorecard-progress span.is-complete {
  border: 0 !important;
  border-left: 0 !important;
  border-color: transparent !important;
  background: transparent !important;
  box-shadow: none !important;
}

.scorecard-progress span + span {
  border-left: 0 !important;
}

.scorecard-progress span:hover,
.scorecard-progress span:focus-visible {
  border-color: transparent !important;
  background: transparent !important;
  box-shadow: none !important;
}

.scorecard-modal.is-loading .scorecard-dialog::after {
  background: conic-gradient(from var(--cta-angle, 0deg), transparent 0 34%, rgba(0, 191, 255, 0.38) 48%, #00BFFF 60%, #ffffff 68%, #38D5FF 76%, transparent 90% 100%) !important;
  animation: scorecardBorderOrbit 1.35s linear infinite !important;
  padding: 4px !important;
}

body.dark-mode .scorecard-modal.is-loading .scorecard-dialog::after {
  background: conic-gradient(from var(--cta-angle, 0deg), transparent 0 34%, rgba(56, 213, 255, 0.34) 48%, #38D5FF 60%, rgba(255,255,255,0.95) 68%, #7DE7FF 76%, transparent 90% 100%) !important;
}

@keyframes scorecardBorderOrbit {
  0% { --cta-angle: 0deg; opacity: 1; }
  22% { --cta-angle: 360deg; opacity: 1; }
  34% { --cta-angle: 360deg; opacity: 0; }
  100% { --cta-angle: 360deg; opacity: 0; }
}

/* Final modal polish: homepage eyebrow, visible progress shell, current step cue */
.scorecard-modal-eyebrow {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  width: fit-content !important;
  margin: 0 0 14px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  color: #0b0d10 !important;
  background: transparent !important;
  box-shadow: none !important;
  font-size: 0.72rem !important;
  font-weight: 700 !important;
  letter-spacing: 0 !important;
  line-height: 1 !important;
  text-transform: uppercase !important;
}

.scorecard-modal-eyebrow::before {
  content: "" !important;
  display: block !important;
  width: 18px !important;
  height: 2px !important;
  border-radius: 0 !important;
  background: var(--red) !important;
}

body.dark-mode .scorecard-modal-eyebrow {
  color: rgba(247, 247, 248, 0.68) !important;
  background: transparent !important;
  border: 0 !important;
}

.scorecard-progress,
body.dark-mode .scorecard-progress {
  border: 1px solid var(--line) !important;
  background: var(--surface) !important;
}

.scorecard-progress span,
body.dark-mode .scorecard-progress span {
  border: 0 !important;
  box-shadow: none !important;
}

.scorecard-progress span.is-active,
body.dark-mode .scorecard-progress span.is-active {
  background: rgba(107, 114, 128, 0.1) !important;
  box-shadow: none !important;
}

body.dark-mode .scorecard-progress span.is-active {
  background: rgba(255, 255, 255, 0.075) !important;
}

.scorecard-progress span:hover,
.scorecard-progress span:focus-visible {
  border: 0 !important;
  background: rgba(107, 114, 128, 0.07) !important;
  box-shadow: none !important;
}

body.dark-mode .scorecard-progress span:hover,
body.dark-mode .scorecard-progress span:focus-visible {
  background: rgba(255, 255, 255, 0.055) !important;
}

.scorecard-modal.is-loading .scorecard-dialog::after {
  background: conic-gradient(from var(--cta-angle), transparent 0 66%, rgba(0, 191, 255, 0.6) 75%, #00BFFF 82%, #ffffff 87%, #38D5FF 92%, transparent 98% 100%) !important;
  animation: ctaBorderOrbit 780ms linear infinite !important;
  opacity: 1 !important;
  padding: 4px !important;
}

body.dark-mode .scorecard-modal.is-loading .scorecard-dialog::after {
  background: conic-gradient(from var(--cta-angle), transparent 0 66%, rgba(56, 213, 255, 0.52) 75%, #38D5FF 82%, rgba(255, 255, 255, 0.92) 87%, #7DE7FF 92%, transparent 98% 100%) !important;
}

@property --score-border-angle {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}

/* Modal submit animation: border-only motion, no rotating layer */
.scorecard-modal.is-loading .scorecard-dialog::after,
body.dark-mode .scorecard-modal.is-loading .scorecard-dialog::after {
  content: "" !important;
  position: absolute !important;
  inset: 0 !important;
  z-index: 60 !important;
  display: block !important;
  border-radius: inherit !important;
  padding: 4px !important;
  background: conic-gradient(from var(--score-border-angle), transparent 0 66%, rgba(0, 191, 255, 0.58) 75%, #00BFFF 82%, #ffffff 87%, #38D5FF 92%, transparent 98% 100%) !important;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0) !important;
  -webkit-mask-composite: xor !important;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0) !important;
  mask-composite: exclude !important;
  animation: scorecardBorderTrace 820ms linear infinite !important;
  opacity: 1 !important;
  transform: none !important;
  pointer-events: none !important;
  will-change: auto !important;
}

body.dark-mode .scorecard-modal.is-loading .scorecard-dialog::after {
  background: conic-gradient(from var(--score-border-angle), transparent 0 66%, rgba(56, 213, 255, 0.56) 75%, #38D5FF 82%, rgba(255, 255, 255, 0.94) 87%, #7DE7FF 92%, transparent 98% 100%) !important;
}

@keyframes scorecardBorderTrace {
  to {
    --score-border-angle: 360deg;
  }
}

.header-cta,
.button-primary {
  color: #ffffff !important;
  background: var(--red) !important;
  border-color: var(--red) !important;
  box-shadow: 0 14px 34px rgba(0, 191, 255, 0.18) !important;
}

.header-cta:hover,
.header-cta:focus-visible,
.button-primary:hover,
.button-primary:focus-visible {
  color: #ffffff !important;
  background: #00A6DD !important;
  border-color: #00A6DD !important;
  box-shadow: 0 16px 40px rgba(0, 191, 255, 0.24) !important;
}

/* Modal experiment: hide progress strip, keep logic; submit uses CTA color */
.scorecard-progress,
body.dark-mode .scorecard-progress {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  border: 0 !important;
  white-space: nowrap !important;
}

.scorecard-form {
  --score-progress-height: 0px !important;
}

.scorecard-submit,
body.dark-mode .scorecard-submit {
  color: #ffffff !important;
  background: var(--red) !important;
  border-color: var(--red) !important;
  box-shadow: 0 14px 34px rgba(0, 191, 255, 0.18) !important;
}

.scorecard-submit:hover,
.scorecard-submit:focus-visible {
  color: #ffffff !important;
  background: #00A6DD !important;
  border-color: #00A6DD !important;
  box-shadow: 0 16px 40px rgba(0, 191, 255, 0.24) !important;
}

/* Short scorecard steps should not stretch a fake empty middle area */
.scorecard-form:not(.has-step-scroll) {
  grid-template-rows: auto auto var(--score-actions-height) !important;
  align-content: start !important;
}

.scorecard-form:not(.has-step-scroll) .score-step.is-active {
  min-height: 0 !important;
  overflow: visible !important;
}

.scorecard-form:not(.has-step-scroll) .scorecard-actions {
  align-self: start !important;
}

/* Short scorecard steps should shrink the modal itself, not leave an empty canvas */
.scorecard-dialog:has(.scorecard-form:not(.has-step-scroll)) {
  height: auto !important;
  min-height: 0 !important;
  max-height: min(90vh, 760px) !important;
}

.scorecard-dialog:has(.scorecard-form:not(.has-step-scroll)) .scorecard-main {
  height: auto !important;
  min-height: 0 !important;
  grid-template-rows: auto auto !important;
}

.scorecard-dialog:has(.scorecard-form:not(.has-step-scroll)) .scorecard-form {
  height: auto !important;
  min-height: 0 !important;
}

.scorecard-dialog:has(.scorecard-form.has-step-scroll) {
  height: min(90vh, 760px) !important;
  max-height: min(90vh, 760px) !important;
}

/* Scorecard modal layout reset: auto modal, fixed header/footer, scrolling body */
.scorecard-dialog,
.scorecard-dialog:has(.scorecard-form:not(.has-step-scroll)),
.scorecard-dialog:has(.scorecard-form.has-step-scroll) {
  display: block !important;
  width: min(100% - 28px, 1120px) !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: min(90svh, 760px) !important;
  overflow: hidden !important;
}

.scorecard-main,
.scorecard-dialog:has(.scorecard-form:not(.has-step-scroll)) .scorecard-main {
  --score-pad: clamp(18px, 3vw, 30px);
  --score-actions-height: 92px;
  display: flex !important;
  flex-direction: column !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: min(90svh, 760px) !important;
  padding: var(--score-pad) var(--score-pad) 0 !important;
  overflow: hidden !important;
}

.scorecard-header {
  flex: 0 0 auto !important;
  margin-bottom: 18px !important;
}

.scorecard-form,
.scorecard-dialog:has(.scorecard-form:not(.has-step-scroll)) .scorecard-form {
  display: flex !important;
  flex: 0 1 auto !important;
  flex-direction: column !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  overflow: hidden !important;
}

.score-step.is-active,
.scorecard-form:not(.has-step-scroll) .score-step.is-active {
  display: grid !important;
  flex: 0 1 auto !important;
  align-content: start !important;
  min-height: 0 !important;
  max-height: min(430px, calc(90svh - 330px)) !important;
  overflow-y: auto !important;
  padding: 0 8px 22px 0 !important;
}

.scorecard-form.has-step-scroll .score-step.is-active {
  max-height: min(430px, calc(90svh - 330px)) !important;
}

.scorecard-actions,
.scorecard-form:not(.has-step-scroll) .scorecard-actions {
  position: relative !important;
  z-index: 30 !important;
  flex: 0 0 var(--score-actions-height) !important;
  min-height: var(--score-actions-height) !important;
  align-self: stretch !important;
  align-items: center !important;
  margin: 0 calc(var(--score-pad) * -1) !important;
  padding: 18px var(--score-pad) !important;
  border-top: 1px solid var(--line) !important;
  background: #ffffff !important;
  box-shadow: 0 -18px 34px rgba(255, 255, 255, 0.96) !important;
}

body.dark-mode .scorecard-actions {
  background: #0b0d10 !important;
  box-shadow: 0 -18px 34px rgba(11, 13, 16, 0.96) !important;
}

.scorecard-form.has-step-scroll::before {
  top: 0 !important;
}

@media (max-height: 680px) {
  .scorecard-dialog,
  .scorecard-main {
    max-height: 94svh !important;
  }

  .scorecard-header h2 {
    font-size: clamp(1.8rem, 4.8vh, 3rem) !important;
  }

  .scorecard-header p {
    font-size: 0.9rem !important;
    line-height: 1.45 !important;
  }

  .score-step.is-active,
  .scorecard-form.has-step-scroll .score-step.is-active {
    max-height: calc(94svh - 300px) !important;
  }
}

@media (max-width: 680px) {
  .scorecard-main {
    --score-actions-height: 84px;
  }

  .score-step.is-active,
  .scorecard-form.has-step-scroll .score-step.is-active {
    max-height: calc(94svh - 280px) !important;
  }
}

/* Final scorecard polish: keep dark footer and top fade pinned */
.scorecard-form.has-step-scroll:not(.step-at-top)::before {
  top: 0 !important;
  height: 72px !important;
  background: linear-gradient(180deg, #ffffff 0%, #ffffff 22%, rgba(255, 255, 255, 0) 100%) !important;
  transform: none !important;
  animation: none !important;
}

body.dark-mode .scorecard-form.has-step-scroll:not(.step-at-top)::before {
  background: linear-gradient(180deg, #0b0d10 0%, #0b0d10 22%, rgba(11, 13, 16, 0) 100%) !important;
}

body.dark-mode .scorecard-actions,
body.dark-mode .scorecard-form:not(.has-step-scroll) .scorecard-actions,
body.dark-mode .scorecard-form.has-step-scroll .scorecard-actions {
  border-top-color: rgba(255, 255, 255, 0.11) !important;
  background: #0b0d10 !important;
  box-shadow: 0 -18px 34px rgba(11, 13, 16, 0.96) !important;
}

/* Keep blog topic selection off the old red treatment */
.blog-topics a.is-active,
.blog-topics button.is-active {
  color: #061017 !important;
  border-color: rgba(0, 191, 255, 0.34) !important;
  background: rgba(0, 191, 255, 0.09) !important;
  box-shadow: inset 0 0 0 1px rgba(0, 191, 255, 0.08) !important;
}

body.dark-mode .blog-topics a.is-active,
body.dark-mode .blog-topics button.is-active {
  color: #f7f9fb !important;
  border-color: rgba(56, 213, 255, 0.32) !important;
  background: rgba(56, 213, 255, 0.1) !important;
  box-shadow: inset 0 0 0 1px rgba(56, 213, 255, 0.08) !important;
}

/* Scorecard submits now close the modal and confirm with a site toast */
.scorecard-toast {
  position: fixed;
  right: clamp(16px, 3vw, 34px);
  bottom: clamp(16px, 3vw, 34px);
  z-index: 260;
  display: grid;
  grid-template-columns: 12px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  width: min(420px, calc(100vw - 32px));
  padding: 18px 20px;
  color: #111111;
  border: 1px solid rgba(0, 191, 255, 0.22);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.14), 0 0 0 1px rgba(255, 255, 255, 0.74) inset;
  opacity: 0;
  pointer-events: none;
  transform: translateY(18px) scale(0.98);
  transition: opacity 220ms ease, transform 220ms ease;
  -webkit-backdrop-filter: blur(22px) saturate(145%);
  backdrop-filter: blur(22px) saturate(145%);
}

.scorecard-toast.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.scorecard-toast-mark {
  width: 12px;
  height: 12px;
  margin-top: 5px;
  border-radius: 999px;
  background: var(--red);
  box-shadow: 0 0 0 7px rgba(0, 191, 255, 0.12), 0 0 28px rgba(0, 191, 255, 0.42);
}

.scorecard-toast strong,
.scorecard-toast small {
  display: block;
}

.scorecard-toast strong {
  font-size: 1rem;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.scorecard-toast small {
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.45;
}

body.dark-mode .scorecard-toast {
  color: #f7f9fb;
  border-color: rgba(56, 213, 255, 0.2);
  background: rgba(12, 15, 18, 0.86);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.08) inset;
}

body.dark-mode .scorecard-toast small {
  color: rgba(247, 249, 251, 0.72);
}

@media (max-width: 680px) {
  .scorecard-toast {
    right: 14px;
    bottom: 14px;
    width: calc(100vw - 28px);
    border-radius: 20px;
  }
}

/* Final cue split: fixed gradient layer, independently bouncing text */
.scorecard-form.has-step-scroll:not(.step-at-bottom)::after {
  content: "" !important;
  bottom: var(--score-actions-height) !important;
  height: 84px !important;
  padding: 0 !important;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, #ffffff 68%, #ffffff 100%) !important;
  transform: none !important;
  animation: none !important;
}

body.dark-mode .scorecard-form.has-step-scroll:not(.step-at-bottom)::after {
  background: linear-gradient(180deg, rgba(11, 13, 16, 0) 0%, #0b0d10 68%, #0b0d10 100%) !important;
}

.score-step.is-active.has-scroll:not(.is-at-bottom)::after {
  content: "Scroll for more" !important;
  position: sticky !important;
  bottom: 0 !important;
  z-index: 35 !important;
  display: flex !important;
  height: 30px !important;
  margin: -30px 0 0 !important;
  padding: 0 !important;
  align-items: center !important;
  justify-content: center !important;
  color: var(--red) !important;
  background: transparent !important;
  font-size: 0.7rem !important;
  font-weight: 900 !important;
  letter-spacing: 0.04em !important;
  text-transform: uppercase !important;
  animation: scrollCueTextBounce 1.05s ease-in-out infinite !important;
}

.score-step.is-active.has-scroll.is-at-bottom::after {
  display: none !important;
  content: none !important;
}

@keyframes scrollCueTextBounce {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-7px);
  }
}

/* Final CTA treatment: monochrome by color mode */
.header-cta,
.button-primary,
.scorecard-submit,
.scorecard-actions .scorecard-submit {
  color: #ffffff !important;
  background: #0b0b0c !important;
  border-color: #0b0b0c !important;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.14) !important;
}

.header-cta:hover,
.header-cta:focus-visible,
.button-primary:hover,
.button-primary:focus-visible,
.scorecard-submit:hover,
.scorecard-submit:focus-visible {
  color: #ffffff !important;
  background: #000000 !important;
  border-color: #000000 !important;
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.18) !important;
}

body.dark-mode .header-cta,
body.dark-mode .button-primary,
body.dark-mode .scorecard-submit,
body.dark-mode .scorecard-actions .scorecard-submit {
  color: #07090c !important;
  background: #ffffff !important;
  border-color: #ffffff !important;
  box-shadow: 0 14px 36px rgba(255, 255, 255, 0.12) !important;
}

body.dark-mode .header-cta:hover,
body.dark-mode .header-cta:focus-visible,
body.dark-mode .button-primary:hover,
body.dark-mode .button-primary:focus-visible,
body.dark-mode .scorecard-submit:hover,
body.dark-mode .scorecard-submit:focus-visible {
  color: #07090c !important;
  background: #f4f7fb !important;
  border-color: #f4f7fb !important;
  box-shadow: 0 16px 44px rgba(255, 255, 255, 0.16) !important;
}

/* CTA animation disabled: keep the clean static buttons */
.header-cta,
.button-primary,
.scorecard-submit,
.scorecard-actions .scorecard-submit {
  animation: none !important;
  overflow: hidden !important;
}

.header-cta::before,
.header-cta::after,
.button-primary::before,
.button-primary::after,
.scorecard-submit::before,
.scorecard-submit::after,
.scorecard-actions .scorecard-submit::before,
.scorecard-actions .scorecard-submit::after {
  display: none !important;
  content: none !important;
  animation: none !important;
}

/* Keep the scorecard tighter than the page-width sections. */
.scorecard-dialog,
.scorecard-dialog:has(.scorecard-form:not(.has-step-scroll)),
.scorecard-dialog:has(.scorecard-form.has-step-scroll) {
  width: min(100% - 28px, 900px) !important;
}
