:root {
  --white: #ffffff;
  --ice: #e8edf2;
  --carbon: #3a3a3a;
  --active-blue: #3d8ed9;
  --corporate-blue: #1b5fa7;
  --action: #f26b21;
  --text: #3a3a3a;
  --muted: rgba(58, 58, 58, 0.72);
  --faint: rgba(58, 58, 58, 0.54);
  --line: rgba(27, 95, 167, 0.16);
  --line-strong: rgba(27, 95, 167, 0.28);
  --initial: #5ba88c;
  --intermediate: #3d8ed9;
  --advanced: #8c69d8;
  --shadow: 0 18px 44px rgba(27, 95, 167, 0.12);
  --radius: 8px;
  --max: 1180px;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #f4f7fa;
  color: var(--text);
  font-family: Montserrat, Avenir, "Avenir Next", "Proxima Nova", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  min-height: 100vh;
  overflow-x: hidden;
}

body.modal-open {
  overflow: hidden;
}

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

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

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

.skip-link {
  background: var(--action);
  color: var(--white);
  left: 1rem;
  padding: 0.7rem 1rem;
  position: fixed;
  top: -5rem;
  z-index: 200;
}

.skip-link:focus {
  top: 1rem;
}

.site-header {
  align-items: center;
  backdrop-filter: blur(18px);
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(27, 95, 167, 0.14);
  display: grid;
  gap: 1rem;
  grid-template-columns: auto 1fr auto;
  left: 0;
  padding: 0.85rem clamp(1rem, 4vw, 3rem);
  position: sticky;
  right: 0;
  top: 0;
  transition: box-shadow 220ms ease, border-color 220ms ease;
  z-index: 100;
}

.site-header.is-scrolled {
  border-color: rgba(27, 95, 167, 0.22);
  box-shadow: 0 10px 28px rgba(27, 95, 167, 0.08);
}

.brand img {
  height: 2.25rem;
  width: auto;
}

.main-nav {
  align-items: center;
  display: flex;
  gap: clamp(0.75rem, 2vw, 1.4rem);
  justify-content: center;
}

.main-nav a,
.site-footer a {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 650;
  transition: color 160ms ease;
}

.main-nav a:hover,
.main-nav a:focus-visible {
  color: var(--corporate-blue);
}

.menu-toggle {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: none;
  height: 2.55rem;
  place-items: center;
  width: 2.8rem;
}

.menu-toggle span {
  background: var(--corporate-blue);
  display: block;
  height: 2px;
  margin: 4px auto;
  width: 1.1rem;
}

.btn {
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
  display: inline-flex;
  font-weight: 800;
  justify-content: center;
  letter-spacing: 0;
  min-height: 2.9rem;
  padding: 0.82rem 1.05rem;
  transition: transform 170ms ease, border-color 170ms ease, background 170ms ease, box-shadow 170ms ease;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--active-blue);
  border-color: var(--active-blue);
  box-shadow: 0 12px 26px rgba(61, 142, 217, 0.2);
  color: var(--white);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--corporate-blue);
  border-color: var(--corporate-blue);
}

.btn-secondary {
  background: var(--white);
  border-color: rgba(27, 95, 167, 0.24);
  color: var(--corporate-blue);
}

.btn-ghost {
  background: transparent;
  color: var(--corporate-blue);
}

.section {
  padding: clamp(4rem, 8vw, 7rem) clamp(1rem, 4vw, 3rem);
  position: relative;
}

main > .section:nth-child(even) {
  background: #edf3f8;
}

main > .section:nth-child(5n) {
  background: linear-gradient(135deg, #e8edf2 0%, #f7fbff 58%, #eaf3fb 100%);
}

.section-tight {
  padding-top: clamp(2.5rem, 6vw, 4.5rem);
}

.container {
  margin: 0 auto;
  max-width: var(--max);
  width: 100%;
}

.hero {
  background:
    linear-gradient(110deg, rgba(27, 95, 167, 0.12) 0%, rgba(61, 142, 217, 0.08) 42%, rgba(255, 255, 255, 0.96) 42%),
    linear-gradient(180deg, #ffffff 0%, #f1f6fb 100%);
  min-height: calc(100svh - 5rem);
  padding-top: clamp(4rem, 8vw, 7rem);
}

.hero-grid {
  align-items: center;
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 1.05fr);
}

.eyebrow {
  align-items: center;
  color: var(--corporate-blue);
  display: inline-flex;
  font-size: 0.76rem;
  font-weight: 850;
  gap: 0.55rem;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
  text-transform: uppercase;
}

.eyebrow::before {
  background: var(--action);
  content: "";
  height: 0.55rem;
  width: 0.55rem;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
.display {
  color: var(--carbon);
  font-family: Montserrat, Avenir, "Avenir Next", "Proxima Nova", system-ui, sans-serif;
  font-weight: 850;
  letter-spacing: 0;
  line-height: 1.02;
}

h1 {
  font-size: clamp(2.6rem, 5.9vw, 5.6rem);
  margin-bottom: 1.25rem;
  max-width: 12ch;
}

h2 {
  font-size: clamp(1.95rem, 4vw, 3.75rem);
  margin-bottom: 1rem;
}

h3 {
  color: var(--carbon);
  font-size: clamp(1.05rem, 1.55vw, 1.28rem);
  line-height: 1.24;
}

.lead {
  color: var(--muted);
  font-size: clamp(1rem, 1.55vw, 1.22rem);
  max-width: 45rem;
}

.copy {
  color: var(--muted);
}

.hero-actions,
.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.75rem;
}

.hero-metrics {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 0;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 2rem;
}

.metric-mini {
  background: transparent;
  border-right: 1px solid var(--line);
  padding: 1rem 1rem 0.2rem 0;
}

.metric-mini:last-child {
  border-right: 0;
}

.metric-mini strong {
  color: var(--corporate-blue);
  display: block;
  font-size: 1.45rem;
  font-weight: 900;
}

.metric-mini span {
  color: var(--faint);
  display: block;
  font-size: 0.8rem;
  font-weight: 650;
}

.visual-system {
  position: relative;
}

.hero-image-card {
  background: var(--white);
  border: 1px solid rgba(27, 95, 167, 0.18);
  border-radius: var(--radius);
  box-shadow: 0 26px 68px rgba(27, 95, 167, 0.18);
  overflow: hidden;
  padding: 0.75rem;
  position: relative;
}

.hero-image-card img {
  aspect-ratio: 16 / 10;
  border-radius: calc(var(--radius) - 2px);
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.hero-score-panel {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(27, 95, 167, 0.16);
  border-radius: var(--radius);
  bottom: 1.45rem;
  box-shadow: 0 18px 38px rgba(27, 95, 167, 0.14);
  left: 1.45rem;
  max-width: min(22rem, calc(100% - 2.9rem));
  padding: 1rem;
  position: absolute;
}

.video-card,
.retail-card,
.score-card,
.resource-card,
.program-card,
.level-card,
.faq-item,
.case-card,
.blog-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.content-card {
  background: transparent;
  border: 0;
  border-left: 3px solid var(--active-blue);
  box-shadow: none;
  padding: 0 0 0 1rem;
  transition: transform 180ms ease, border-color 180ms ease;
}

.resource-card:hover,
.program-card:hover,
.level-card:hover,
.case-card:hover,
.blog-card:hover,
.video-card:hover {
  border-color: rgba(61, 142, 217, 0.42);
  box-shadow: 0 18px 46px rgba(27, 95, 167, 0.16);
  transform: translateY(-3px);
}

.content-card:hover {
  border-color: var(--action);
  transform: translateY(-2px);
}

.video-card {
  padding: 0.9rem;
}

.video-frame {
  aspect-ratio: 16 / 10;
  background: #112f52;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
}

.video-frame video,
.video-frame .video-fallback {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.video-fallback {
  align-items: center;
  background: linear-gradient(135deg, var(--corporate-blue), var(--active-blue));
  display: grid;
  place-items: center;
}

.video-fallback img {
  max-width: min(68%, 18rem);
  opacity: 0.95;
}

.video-caption {
  align-items: center;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  padding-top: 0.9rem;
}

.manifesto-video .video-frame {
  aspect-ratio: 16 / 9;
}

.manifesto-video video {
  object-fit: cover;
}

.video-toggle {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(27, 95, 167, 0.22);
  border-radius: 999px;
  bottom: 1rem;
  color: var(--corporate-blue);
  cursor: pointer;
  font-weight: 850;
  min-width: 5.4rem;
  padding: 0.55rem 0.9rem;
  position: absolute;
  right: 1rem;
}

.video-note {
  color: var(--faint);
  font-size: 0.8rem;
  font-weight: 650;
  text-align: right;
}

.pill {
  background: rgba(61, 142, 217, 0.08);
  border: 1px solid rgba(61, 142, 217, 0.18);
  border-radius: 999px;
  color: var(--corporate-blue);
  display: inline-flex;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 0.38rem 0.65rem;
}

.floating-stack {
  bottom: -1.2rem;
  display: grid;
  gap: 0.65rem;
  position: absolute;
  right: -0.4rem;
  width: min(15rem, 42vw);
}

.float-chip {
  align-items: center;
  background: rgba(27, 95, 167, 0.96);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  box-shadow: 0 12px 24px rgba(27, 95, 167, 0.18);
  color: var(--white);
  display: flex;
  gap: 0.7rem;
  padding: 0.7rem;
}

.chip-dot {
  background: var(--action);
  height: 0.65rem;
  width: 0.65rem;
}

.section-head {
  align-items: end;
  display: grid;
  gap: 1.5rem;
  grid-template-columns: minmax(0, 0.95fr) minmax(260px, 0.55fr);
  margin-bottom: clamp(1.7rem, 4vw, 2.7rem);
}

.grid {
  display: grid;
  gap: 1.2rem;
}

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

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

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

.resource-card,
.program-card,
.level-card,
.case-card,
.blog-card {
  padding: clamp(1rem, 2vw, 1.35rem);
}

.content-card p,
.resource-card p,
.program-card p,
.level-card p,
.case-card p,
.blog-card p {
  color: var(--muted);
}

.card-icon {
  align-items: center;
  background: var(--ice);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--corporate-blue);
  display: inline-flex;
  font-weight: 900;
  height: 2.35rem;
  justify-content: center;
  margin-bottom: 1rem;
  width: 2.35rem;
}

.mini-bar {
  background: rgba(27, 95, 167, 0.1);
  height: 0.35rem;
  margin-top: 1rem;
  overflow: hidden;
}

.mini-bar span {
  background: var(--active-blue);
  display: block;
  height: 100%;
}

.timeline {
  counter-reset: step;
  display: grid;
  gap: 0;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.timeline-item {
  background: var(--white);
  border: 1px solid var(--line);
  border-right: 0;
  min-height: 12rem;
  padding: 1.1rem;
  position: relative;
}

.timeline-item:first-child {
  border-radius: var(--radius) 0 0 var(--radius);
}

.timeline-item:last-child {
  border-radius: 0 var(--radius) var(--radius) 0;
  border-right: 1px solid var(--line);
}

.timeline-item::before {
  align-items: center;
  background: var(--corporate-blue);
  color: var(--white);
  content: counter(step);
  counter-increment: step;
  display: flex;
  font-weight: 900;
  height: 2rem;
  justify-content: center;
  margin-bottom: 1.1rem;
  width: 2rem;
}

.level-card {
  border-top: 4px solid var(--level-color, var(--active-blue));
}

.level-card .badge {
  background: color-mix(in srgb, var(--level-color, var(--active-blue)) 13%, white);
  border-color: color-mix(in srgb, var(--level-color, var(--active-blue)) 38%, white);
  color: var(--carbon);
}

.level-card ul,
.program-card ul,
.legal-content ul,
.content-card ul {
  color: var(--muted);
  padding-left: 1.1rem;
}

.program-card {
  display: flex;
  flex-direction: column;
}

.program-card .btn {
  margin-top: auto;
}

.logo-strip {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1rem;
}

.logo-row {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.retail-logo {
  align-items: center;
  background: #f6f8fb;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: rgba(58, 58, 58, 0.58);
  display: flex;
  font-weight: 850;
  justify-content: center;
  min-height: 4.2rem;
  text-align: center;
}

.logo-row-brands {
  align-items: stretch;
}

.retail-logo-image {
  background: #ffffff;
  min-height: 5.5rem;
  padding: 1rem;
}

.retail-logo-image img {
  display: block;
  max-width: 100%;
  max-height: 42px;
  width: auto;
  height: auto;
  object-fit: contain;
  margin: 0 auto;
}

.logo-walmart img {
  max-height: 34px;
}

.logo-heb img {
  max-height: 38px;
}

.logo-chedraui img {
  max-height: 28px;
}

.logo-soriana img {
  max-height: 36px;
}

.framework-card {
  min-height: 13rem;
}

.dashboard-visual {
  background: linear-gradient(180deg, var(--corporate-blue), #2f80c5);
  border: 1px solid rgba(27, 95, 167, 0.18);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  min-height: 24rem;
  overflow: hidden;
  padding: 1rem;
}

.shelf {
  display: grid;
  gap: 0.8rem;
}

.shelf-row {
  align-items: end;
  border-bottom: 1px solid rgba(255, 255, 255, 0.36);
  display: grid;
  gap: 0.5rem;
  grid-template-columns: repeat(5, 1fr);
  min-height: 4.4rem;
  padding-bottom: 0.45rem;
}

.pack {
  background: linear-gradient(160deg, var(--white), #dce8f4);
  border: 1px solid rgba(255, 255, 255, 0.5);
  height: var(--h, 3rem);
}

.score-widget {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: var(--radius);
  color: var(--carbon);
  margin-top: 1rem;
  padding: 1rem;
}

.score-line {
  align-items: center;
  display: grid;
  gap: 0.8rem;
  grid-template-columns: 7rem 1fr 2.4rem;
  margin-top: 0.7rem;
}

.bar {
  background: rgba(27, 95, 167, 0.12);
  height: 0.55rem;
  overflow: hidden;
}

.bar span {
  background: var(--bar-color, var(--active-blue));
  display: block;
  height: 100%;
  width: var(--value, 50%);
}

.faq-list {
  display: grid;
  gap: 0.75rem;
}

.faq-question {
  align-items: center;
  background: transparent;
  border: 0;
  color: var(--carbon);
  cursor: pointer;
  display: flex;
  font-weight: 800;
  justify-content: space-between;
  padding: 1rem;
  text-align: left;
  width: 100%;
}

.faq-question span {
  color: var(--active-blue);
  font-size: 1.35rem;
}

.faq-answer {
  color: var(--muted);
  display: grid;
  grid-template-rows: 0fr;
  padding: 0 1rem;
  transition: grid-template-rows 180ms ease, padding 180ms ease;
}

.faq-answer > div {
  overflow: hidden;
}

.faq-item.is-open .faq-answer {
  grid-template-rows: 1fr;
  padding-bottom: 1rem;
}

.cta-band {
  background:
    linear-gradient(135deg, rgba(242, 107, 33, 0.14), transparent 36%),
    var(--corporate-blue);
  border: 1px solid rgba(27, 95, 167, 0.25);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  color: var(--white);
  padding: clamp(1.4rem, 4vw, 2.5rem);
}

.cta-band h2,
.cta-band .lead,
.cta-band .eyebrow {
  color: var(--white);
}

.cta-band .eyebrow::before {
  background: var(--action);
}

.cta-band .btn-primary {
  background: var(--action);
  border-color: var(--action);
}

.comparison {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow-x: auto;
}

table {
  border-collapse: collapse;
  min-width: 760px;
  width: 100%;
}

th,
td {
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  padding: 1rem;
  text-align: left;
  vertical-align: top;
}

th {
  background: var(--corporate-blue);
  color: var(--white);
}

.quiz-shell {
  margin: 0 auto;
  max-width: 860px;
}

.quiz-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: clamp(1.1rem, 4vw, 2rem);
}

.progress-wrap {
  margin-bottom: 1.5rem;
}

.progress-meta {
  color: var(--muted);
  display: flex;
  font-size: 0.85rem;
  justify-content: space-between;
  margin-bottom: 0.55rem;
}

.progress-bar {
  background: rgba(27, 95, 167, 0.12);
  height: 0.55rem;
  overflow: hidden;
}

.progress-bar span {
  background: var(--active-blue);
  display: block;
  height: 100%;
  transition: width 260ms ease;
}

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

.field {
  display: grid;
  gap: 0.45rem;
}

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

label {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 750;
}

input,
select,
textarea {
  background: var(--white);
  border: 1px solid rgba(27, 95, 167, 0.22);
  border-radius: var(--radius);
  color: var(--carbon);
  min-height: 3rem;
  padding: 0.85rem 0.9rem;
  width: 100%;
}

select option {
  background: var(--white);
}

textarea {
  min-height: 8rem;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus,
button:focus-visible,
a:focus-visible {
  outline: 2px solid rgba(61, 142, 217, 0.8);
  outline-offset: 3px;
}

.answer-list {
  display: grid;
  gap: 0.85rem;
  margin-top: 1.5rem;
}

.answer-btn {
  align-items: start;
  background: #f6f8fb;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--carbon);
  cursor: pointer;
  display: grid;
  gap: 0.35rem;
  padding: 1rem;
  text-align: left;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.answer-btn:hover,
.answer-btn:focus-visible {
  background: var(--white);
  border-color: rgba(61, 142, 217, 0.46);
  transform: translateY(-1px);
}

.answer-btn small {
  color: var(--muted);
  font-size: 0.9rem;
}

.checkbox-row {
  align-items: start;
  color: var(--muted);
  display: grid;
  gap: 0.65rem;
  grid-template-columns: auto 1fr;
  margin-top: 1rem;
}

.checkbox-row input {
  height: 1.1rem;
  margin-top: 0.2rem;
  min-height: auto;
  width: 1.1rem;
}

.error-message {
  color: #b94a1d;
  margin-top: 0.8rem;
}

.result-hero {
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 0.45fr);
}

.score-big {
  align-items: center;
  background: conic-gradient(var(--level-color) var(--score-deg), rgba(27, 95, 167, 0.12) 0);
  border-radius: 50%;
  display: flex;
  height: 13rem;
  justify-content: center;
  margin: 0 auto;
  position: relative;
  width: 13rem;
}

.score-big::before {
  background: var(--white);
  border-radius: 50%;
  content: "";
  height: 9.4rem;
  position: absolute;
  width: 9.4rem;
}

.score-big strong {
  color: var(--carbon);
  font-size: 2.9rem;
  font-weight: 900;
  position: relative;
}

.result-panels {
  margin-top: 1.5rem;
}

.loading-card {
  align-items: center;
  display: grid;
  min-height: 20rem;
  place-items: center;
  text-align: center;
}

.spinner {
  animation: spin 900ms linear infinite;
  border: 3px solid rgba(27, 95, 167, 0.12);
  border-top-color: var(--active-blue);
  height: 3rem;
  margin: 0 auto 1rem;
  width: 3rem;
}

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

.is-diagnostic-route .sticky-quiz {
  display: none;
}

.tms-diagnostic {
  --td-navy: #1b3264;
  --td-navy-light: #243d75;
  --td-green: #00c87a;
  --td-green-dark: #00a865;
  --td-light: #f5f7fa;
  --td-g100: #eef1f7;
  --td-g200: #d8dee9;
  --td-g400: #9ba5bc;
  --td-g600: #6b7a99;
  --td-red: #e53935;
  --td-yellow: #f5a623;
  background: var(--td-light);
  color: var(--td-navy);
  font-family: Outfit, Montserrat, Avenir, "Avenir Next", system-ui, sans-serif;
  min-height: calc(100svh - 4.2rem);
  position: relative;
}

.td-pbar-wrap {
  background: var(--td-g200);
  height: 3px;
  inset: 0 0 auto;
  position: sticky;
  top: 0;
  z-index: 20;
}

.td-pbar {
  background: var(--td-green);
  height: 100%;
  transition: width 360ms ease;
}

.td-hdr {
  align-items: center;
  background: var(--td-navy);
  color: var(--white);
  display: flex;
  justify-content: space-between;
  padding: 0.9rem clamp(1rem, 4vw, 2rem);
}

.td-logo {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  font-size: 0.94rem;
  font-weight: 800;
}

.td-logo span span {
  color: var(--td-green);
}

.td-logo i {
  background: rgba(255, 255, 255, 0.26);
  display: block;
  height: 1.1rem;
  width: 1px;
}

.td-logo small {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.82rem;
  font-weight: 500;
}

.td-badge,
.td-stage-badge {
  border-radius: 4px;
  display: inline-flex;
  font-size: 0.66rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  padding: 0.35rem 0.78rem;
  text-transform: uppercase;
}

.td-badge {
  background: var(--td-green);
  color: var(--td-navy);
}

.td-screen {
  display: none;
  min-height: 64svh;
}

.td-screen.is-active {
  animation: tdFadeUp 320ms ease;
  display: block;
}

@keyframes tdFadeUp {
  from {
    opacity: 0;
    transform: translateY(14px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.td-intro-hero {
  background: var(--td-navy);
  color: var(--white);
  margin: 0 auto;
  padding: clamp(3.2rem, 7vw, 5rem) clamp(1.25rem, 5vw, 3rem) clamp(2.8rem, 6vw, 4rem);
}

.td-intro-hero > * {
  margin-left: auto;
  margin-right: auto;
  max-width: 900px;
}

.td-eyebrow,
.td-section-eyebrow {
  color: var(--td-green);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.16em;
  margin-bottom: 1rem;
  text-transform: uppercase;
}

.td-section-eyebrow {
  color: var(--td-green-dark);
}

.td-intro-hero h1 {
  color: var(--white);
  font-family: Outfit, Montserrat, system-ui, sans-serif;
  font-size: clamp(2.45rem, 6vw, 4.4rem);
  font-weight: 950;
  line-height: 1.04;
  margin-bottom: 1.15rem;
  max-width: 12ch;
}

.td-intro-hero h1 em {
  color: var(--td-green);
  font-style: italic;
}

.td-intro-hero p:not(.td-eyebrow) {
  color: rgba(255, 255, 255, 0.68);
  font-size: 1.05rem;
  line-height: 1.65;
  max-width: 34rem;
}

.td-stat-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.75rem;
  margin-top: 2.5rem;
}

.td-stat-row span {
  align-items: center;
  color: rgba(255, 255, 255, 0.62);
  display: inline-flex;
  font-size: 0.86rem;
  gap: 0.55rem;
}

.td-stat-row i {
  background: var(--td-green);
  border-radius: 50%;
  height: 5px;
  width: 5px;
}

.td-btn {
  align-items: center;
  border-radius: 6px;
  cursor: pointer;
  display: inline-flex;
  font-weight: 850;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.75rem 1.35rem;
  transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.td-btn:hover,
.td-btn:focus-visible {
  transform: translateY(-1px);
}

.td-btn-primary {
  background: var(--td-green);
  border: 0;
  color: var(--td-navy);
  margin-top: 2rem;
}

.td-btn-primary:hover,
.td-btn-primary:focus-visible {
  background: var(--td-green-dark);
}

.td-btn-next {
  background: var(--td-navy);
  border: 1px solid var(--td-navy);
  color: var(--white);
}

.td-btn-next:hover,
.td-btn-next:focus-visible {
  background: var(--td-navy-light);
}

.td-btn-back {
  background: transparent;
  border: 1.5px solid var(--td-g200);
  color: var(--td-g600);
}

.td-intro-cards {
  background: rgba(255, 255, 255, 0.08);
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.td-intro-cards article {
  background: var(--td-navy);
  color: var(--white);
  padding: clamp(1.25rem, 4vw, 2rem);
}

.td-intro-cards strong {
  color: var(--td-green);
  display: block;
  font-size: 2.35rem;
  font-weight: 950;
  line-height: 1;
}

.td-intro-cards small {
  color: rgba(255, 255, 255, 0.48);
  display: block;
  font-size: 0.68rem;
  font-weight: 850;
  letter-spacing: 0.14em;
  margin-top: 0.45rem;
  text-transform: uppercase;
}

.td-intro-cards p {
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.9rem;
  margin: 0.55rem 0 0;
  max-width: 20rem;
}

.td-data-inner,
.td-area-header,
.td-question-grid,
.td-nav,
.td-result-body {
  margin: 0 auto;
  max-width: 900px;
}

.td-data-inner {
  padding: clamp(2.4rem, 6vw, 4rem) clamp(1.25rem, 4vw, 2rem);
}

.td-data-inner h2,
.td-area-header h2 {
  color: var(--td-navy);
  font-family: Outfit, Montserrat, system-ui, sans-serif;
  font-size: clamp(1.8rem, 3vw, 2.2rem);
  font-weight: 900;
  line-height: 1.12;
  margin-bottom: 0.5rem;
}

.td-section-copy,
.td-area-header p {
  color: var(--td-g600);
}

.td-form-grid {
  display: grid;
  gap: 1rem 1.1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 2rem;
}

.td-form-label,
.td-divider,
.td-form-actions,
.td-warning {
  grid-column: 1 / -1;
}

.td-form-label {
  color: var(--td-g400);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.td-divider {
  background: var(--td-g200);
  height: 1px;
}

.td-field {
  color: var(--td-navy);
  display: grid;
  font-size: 0.82rem;
  font-weight: 750;
  gap: 0.45rem;
}

.td-field b {
  color: var(--td-green-dark);
}

.td-field input,
.td-field select {
  border: 1.5px solid var(--td-g200);
  border-radius: 6px;
  color: var(--td-navy);
  min-height: 2.9rem;
  padding: 0.72rem 0.85rem;
}

.td-field input:focus,
.td-field select:focus {
  border-color: var(--td-green);
}

.td-form-actions {
  display: flex;
  justify-content: flex-end;
  padding-top: 0.5rem;
}

.td-warning {
  background: rgba(229, 57, 53, 0.08);
  border-radius: 5px;
  color: var(--td-red);
  font-size: 0.78rem;
  font-weight: 750;
  padding: 0.5rem 0.8rem;
}

.td-area-header {
  padding: clamp(2rem, 5vw, 3rem) clamp(1.25rem, 4vw, 3rem) 1.4rem;
}

.td-area-header span {
  border-radius: 4px;
  color: var(--white);
  display: inline-flex;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.09em;
  margin-bottom: 0.8rem;
  padding: 0.36rem 0.8rem;
  text-transform: uppercase;
}

.td-question-grid {
  display: grid;
  gap: 1.1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 0 clamp(1.25rem, 4vw, 3rem) 2.4rem;
}

.td-question-card {
  background: var(--white);
  border: 1.5px solid var(--td-g200);
  border-radius: 8px;
  padding: 1.35rem;
}

.td-question-num {
  align-items: center;
  border-radius: 50%;
  color: var(--white);
  display: inline-flex;
  font-size: 0.7rem;
  font-weight: 900;
  height: 1.65rem;
  justify-content: center;
  margin-bottom: 0.75rem;
  width: 1.65rem;
}

.td-question-card h3 {
  color: var(--td-navy);
  font-size: 0.95rem;
  font-weight: 850;
  line-height: 1.4;
  margin-bottom: 0.85rem;
}

.td-options {
  display: grid;
  gap: 0.45rem;
}

.td-option {
  align-items: flex-start;
  background: transparent;
  border: 1.5px solid transparent;
  border-radius: 6px;
  color: var(--td-g600);
  cursor: pointer;
  display: grid;
  gap: 0.55rem;
  grid-template-columns: auto 1fr;
  padding: 0.6rem 0.7rem;
  text-align: left;
}

.td-option:hover,
.td-option:focus-visible {
  background: var(--td-g100);
}

.td-option.is-selected {
  background: rgba(0, 200, 122, 0.08);
  border-color: var(--td-green);
  color: var(--td-navy);
}

.td-option span {
  align-items: center;
  background: var(--td-g100);
  border-radius: 4px;
  color: var(--td-g600);
  display: inline-flex;
  font-size: 0.68rem;
  font-weight: 850;
  height: 1.35rem;
  justify-content: center;
  width: 1.35rem;
}

.td-option.is-selected span {
  background: var(--td-green);
  color: var(--td-navy);
}

.td-option small {
  font-size: 0.82rem;
  line-height: 1.4;
}

.td-nav {
  align-items: center;
  border-top: 1px solid var(--td-g200);
  display: flex;
  justify-content: space-between;
  padding: 1.25rem clamp(1.25rem, 4vw, 3rem) 2rem;
}

.td-dots {
  display: flex;
  gap: 0.32rem;
}

.td-dot {
  background: var(--td-g200);
  border-radius: 50%;
  height: 7px;
  width: 7px;
}

.td-dot.is-active {
  background: var(--td-navy);
}

.td-dot.is-done {
  background: var(--td-green);
}

.td-nav-next {
  align-items: flex-end;
  display: grid;
  gap: 0.45rem;
  justify-items: end;
}

.td-result-hero {
  background: var(--td-navy);
  color: var(--white);
  padding: clamp(2.8rem, 6vw, 4rem) clamp(1.25rem, 4vw, 3rem);
  text-align: center;
}

.td-result-hero > * {
  margin-left: auto;
  margin-right: auto;
  max-width: 560px;
}

.td-result-hero p:first-of-type {
  color: rgba(255, 255, 255, 0.46);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  margin-top: 1rem;
  text-transform: uppercase;
}

.td-result-hero strong {
  color: var(--white);
  display: block;
  font-size: clamp(3.5rem, 10vw, 5.5rem);
  font-weight: 950;
  line-height: 1;
  margin-top: 1rem;
}

.td-result-hero strong small {
  color: var(--td-green);
  font-size: 0.48em;
}

.td-result-hero > span:not(.td-stage-badge) {
  color: rgba(255, 255, 255, 0.45);
  display: block;
  margin: 0.4rem auto 1.6rem;
}

.td-result-hero h2 {
  color: var(--white);
  font-family: Outfit, Montserrat, system-ui, sans-serif;
  font-size: clamp(1.45rem, 3vw, 1.9rem);
  font-weight: 900;
  line-height: 1.18;
  margin-bottom: 0.65rem;
}

.td-result-hero p:last-child {
  color: rgba(255, 255, 255, 0.64);
}

.td-result-body {
  padding: clamp(2rem, 5vw, 3.2rem) clamp(1.25rem, 4vw, 2rem);
}

.td-score-title {
  color: var(--td-navy);
  font-size: 1.08rem;
  font-weight: 900;
  margin-bottom: 1rem;
}

.td-score-grid {
  display: grid;
  gap: 0.65rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 2.6rem;
}

.td-score-grid article {
  align-items: center;
  background: var(--white);
  border: 1.5px solid var(--td-g200);
  border-radius: 8px;
  display: grid;
  gap: 0.55rem;
  grid-template-columns: 1fr auto auto;
  padding: 0.9rem 1rem;
}

.td-score-grid span {
  align-items: center;
  color: var(--td-navy);
  display: flex;
  font-size: 0.86rem;
  font-weight: 800;
  gap: 0.65rem;
}

.td-score-grid i {
  border-radius: 50%;
  flex: 0 0 auto;
  height: 9px;
  width: 9px;
}

.td-score-grid strong {
  color: var(--td-navy);
  font-size: 1.18rem;
  font-weight: 950;
}

.td-score-grid small {
  border-radius: 4px;
  font-size: 0.64rem;
  font-weight: 850;
  letter-spacing: 0.02em;
  padding: 0.24rem 0.5rem;
  text-transform: uppercase;
}

.td-label-r {
  background: rgba(229, 57, 53, 0.1);
  color: var(--td-red);
}

.td-label-y {
  background: rgba(245, 166, 35, 0.12);
  color: var(--td-yellow);
}

.td-label-g {
  background: rgba(0, 200, 122, 0.1);
  color: var(--td-green-dark);
}

.td-radar-wrap {
  background: var(--white);
  border: 1.5px solid var(--td-g200);
  border-radius: 8px;
  margin-bottom: 2.6rem;
  padding: 1.75rem;
  text-align: center;
}

.td-radar-wrap p {
  color: var(--td-navy);
  font-size: 0.95rem;
  font-weight: 850;
  margin-bottom: 1.25rem;
}

.td-radar-wrap svg {
  height: auto;
  margin: 0 auto;
  max-width: 100%;
}

.td-conclusion {
  margin-bottom: 2.6rem;
}

.td-conclusion > p {
  color: var(--td-green-dark);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.td-conclusion h3 {
  color: var(--td-navy);
  font-size: clamp(1.55rem, 3vw, 2rem);
  font-weight: 900;
  line-height: 1.18;
}

.td-conclusion h4 {
  color: var(--td-g600);
  font-size: 1rem;
  font-weight: 750;
  line-height: 1.55;
}

.td-conclusion > div:not(.td-product-grid) {
  color: var(--td-g600);
  line-height: 1.75;
  margin: 1rem 0 2rem;
}

.td-product-grid {
  display: grid;
  gap: 0.9rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.td-product-grid article {
  background: var(--white);
  border: 1.5px solid var(--td-g200);
  border-radius: 8px;
  padding: 1.25rem;
  position: relative;
}

.td-product-grid article.is-featured {
  border-color: var(--td-green);
}

.td-product-grid article.is-featured::before {
  background: var(--td-green);
  content: "";
  height: 3px;
  inset: 0 0 auto;
  position: absolute;
}

.td-product-grid span {
  background: rgba(0, 200, 122, 0.12);
  border-radius: 4px;
  color: var(--td-green-dark);
  display: inline-flex;
  font-size: 0.64rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  margin-bottom: 0.6rem;
  padding: 0.24rem 0.5rem;
  text-transform: uppercase;
}

.td-product-grid h4 {
  color: var(--td-navy);
  font-size: 0.98rem;
  font-weight: 900;
  line-height: 1.28;
  margin-bottom: 0.5rem;
}

.td-product-grid p {
  color: var(--td-g600);
  font-size: 0.8rem;
  line-height: 1.5;
}

.td-product-grid strong {
  color: var(--td-navy);
  display: block;
  font-size: 1rem;
  font-weight: 950;
  margin-top: 0.85rem;
}

.td-cta-box {
  background: var(--td-navy);
  border-radius: 10px;
  color: var(--white);
  padding: clamp(1.5rem, 4vw, 2.5rem);
  text-align: center;
}

.td-cta-box h3 {
  color: var(--white);
  font-size: 1.35rem;
  font-weight: 900;
}

.td-cta-box p {
  color: rgba(255, 255, 255, 0.65);
  margin: 0 auto 1.5rem;
  max-width: 32rem;
}

.td-cta-box a {
  background: var(--td-green);
  border-radius: 6px;
  color: var(--td-navy);
  display: inline-flex;
  font-weight: 900;
  padding: 0.9rem 1.5rem;
}

.td-result-footer {
  align-items: center;
  color: var(--td-g400);
  display: flex;
  font-size: 0.8rem;
  gap: 1rem;
  justify-content: center;
  padding: 1.8rem 0 0;
}

.td-restart {
  background: transparent;
  border: 1.5px solid var(--td-g200);
  border-radius: 5px;
  color: var(--td-g600);
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 750;
  padding: 0.45rem 0.9rem;
}

.fade-up {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 520ms ease, transform 520ms ease;
}

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

.site-footer {
  background: var(--corporate-blue);
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  color: var(--white);
  padding: 3rem clamp(1rem, 4vw, 3rem) 5rem;
}

.footer-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  margin: 0 auto;
  max-width: var(--max);
}

.footer-logo {
  height: 2.4rem;
  margin-bottom: 1rem;
  width: auto;
}

.site-footer h3 {
  color: var(--white);
  font-size: 0.95rem;
  margin-bottom: 0.9rem;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.78);
  display: block;
  margin: 0.55rem 0;
}

.site-footer a:hover,
.site-footer a:focus-visible {
  color: var(--white);
}

.site-footer p {
  color: rgba(255, 255, 255, 0.78);
}

.footer-disclaimer {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  margin: 2rem auto 0;
  max-width: var(--max);
  padding-top: 1rem;
}

.sticky-quiz {
  background: var(--action);
  border-radius: var(--radius) var(--radius) 0 0;
  bottom: 0;
  color: var(--white);
  display: none;
  font-weight: 850;
  left: 1rem;
  padding: 0.85rem 1rem;
  position: fixed;
  right: 1rem;
  text-align: center;
  z-index: 90;
}

.modal {
  display: none;
  inset: 0;
  position: fixed;
  z-index: 300;
}

.modal.is-open {
  display: block;
}

.modal-backdrop {
  background: rgba(20, 39, 59, 0.76);
  inset: 0;
  position: absolute;
}

.modal-panel {
  left: 50%;
  max-width: 980px;
  padding: 1rem;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(92vw, 980px);
}

.modal-close {
  background: var(--white);
  border: 0;
  border-radius: var(--radius);
  color: var(--carbon);
  cursor: pointer;
  margin: 0 0 0.75rem auto;
  min-height: 2.4rem;
  padding: 0.55rem 0.8rem;
}

.modal-panel video {
  background: #000;
  border-radius: var(--radius);
  width: 100%;
}

.legal-content {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  color: var(--muted);
  padding: clamp(1rem, 4vw, 2rem);
}

.not-found {
  min-height: 60svh;
}

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

  .menu-toggle {
    display: block;
    grid-column: 2;
    grid-row: 1;
  }

  .main-nav {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    display: none;
    grid-column: 1 / -1;
    grid-row: 2;
    padding: 0.8rem;
  }

  .main-nav.is-open {
    display: grid;
    justify-items: start;
  }

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

  .hero-grid,
  .section-head,
  .result-hero {
    grid-template-columns: 1fr;
  }

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

  .timeline-item,
  .timeline-item:first-child,
  .timeline-item:last-child {
    border: 1px solid var(--line);
    border-radius: var(--radius);
  }

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

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

  .td-question-grid,
  .td-score-grid,
  .td-product-grid {
    grid-template-columns: 1fr;
  }

  .td-score-grid article {
    grid-template-columns: 1fr auto;
  }

  .td-score-grid small {
    grid-column: 1 / -1;
    justify-self: start;
  }
}

@media (max-width: 640px) {
  .brand img {
    height: 1.9rem;
  }

  .site-header {
    gap: 0.6rem;
    padding: 0.75rem 1rem;
  }

  .header-cta {
    font-size: 0.82rem;
    min-height: 2.45rem;
    padding: 0.65rem 0.72rem;
  }

  .hero {
    min-height: auto;
  }

  .hero-metrics,
  .grid-2,
  .grid-3,
  .grid-4,
  .timeline,
  .logo-row,
  .form-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .metric-mini {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .floating-stack {
    margin-top: 1rem;
    position: static;
    width: 100%;
  }

  .hero-score-panel {
    bottom: auto;
    left: auto;
    margin-top: 0.75rem;
    max-width: none;
    position: static;
  }

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

  .video-note {
    text-align: left;
  }

  .section {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  h1 {
    font-size: clamp(2.45rem, 12vw, 3.65rem);
  }

  .sticky-quiz {
    display: block;
  }

  .site-footer {
    padding-bottom: 6rem;
  }

  .td-hdr,
  .td-nav,
  .td-result-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .td-logo i,
  .td-logo small {
    display: none;
  }

  .td-intro-cards,
  .td-form-grid {
    grid-template-columns: 1fr;
  }

  .td-form-actions {
    justify-content: stretch;
  }

  .td-form-actions .td-btn,
  .td-nav .td-btn,
  .td-cta-box a {
    width: 100%;
  }

  .td-dots {
    order: -1;
  }

  .td-nav-next {
    justify-items: stretch;
    width: 100%;
  }

  .td-question-card {
    padding: 1rem;
  }
}

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