/* QMSR in Action: a standalone landing page (/qmsr) with its own fonts, colors
   and footer, sharing nothing with site.css. */

@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('/fonts/plus-jakarta-sans.woff2') format('woff2');
  unicode-range:
    U+00??, U+0131, U+0152-0153, U+02bb-02bc, U+02c6, U+02da, U+02dc, U+0304, U+0308, U+0329,
    U+2000-206f, U+20ac, U+2122, U+2191, U+2193, U+2212, U+2215, U+feff, U+fffd;
}
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/fonts/dm-sans.woff2') format('woff2');
  unicode-range:
    U+00??, U+0131, U+0152-0153, U+02bb-02bc, U+02c6, U+02da, U+02dc, U+0304, U+0308, U+0329,
    U+2000-206f, U+20ac, U+2122, U+2191, U+2193, U+2212, U+2215, U+feff, U+fffd;
}

:root {
  --deep-blue: #1a365d;
  --mid-blue: #234e82;
  --medium-blue: #2b6cb0;
  --light-blue: #4299e1;
  --accent-teal: #38b2ac;
  --accent-green: #48bb78;
  --accent-orange: #ed8936;
  --dark-orange: #dd6b20;
  --warm-gray: #f7fafc;
  --text-dark: #2d3748;
  --text-muted: #718096;
  --border: #e5e7eb;
  --divider: #f3f4f6;
  --mint: #e6fffa;
  --pale-green: #c6f6d5;

  --heading-font: 'Plus Jakarta Sans', Arial, sans-serif;
  --shadow: 0 10px 15px -3px #0000001a, 0 4px 6px -4px #0000001a;
  --shadow-raised: 0 20px 25px -5px #0000001a, 0 8px 10px -6px #0000001a;
  --teal-gradient: linear-gradient(to right in oklab, var(--accent-teal), var(--accent-green));
  --mint-gradient: linear-gradient(to bottom right in oklab, var(--mint), var(--pale-green));
}

*,
::before,
::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  border: 0 solid;
}

html,
body {
  overflow-x: hidden;
}

body {
  background: #fff;
  color: var(--text-dark);
  font-family: 'DM Sans', Arial, sans-serif;
  font-size: 1.125rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4 {
  font-size: inherit;
  font-weight: inherit;
}

h1,
h2,
h3 {
  font-family: var(--heading-font);
}

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

img,
svg {
  display: block;
  vertical-align: middle;
  max-width: 100%;
}

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

.container {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: 1.5rem;
}

.section {
  padding-block: 6rem;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-title {
  color: var(--deep-blue);
  font-size: 1.875rem;
  line-height: 1.2;
  font-weight: 700;
  margin-bottom: 1rem;
}

.section-lead {
  color: var(--text-muted);
  max-width: 700px;
  margin-inline: auto;
  line-height: 1.556;
}

.check {
  flex-shrink: 0;
  color: var(--accent-green);
}

.gradient-text {
  background: var(--teal-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Book banner */

.book-banner {
  display: block;
  background: var(--deep-blue);
  text-align: center;
  padding-block: 1.25rem;
  transition: opacity 0.15s;
}
.book-banner:hover {
  opacity: 0.95;
}
.book-banner img {
  display: inline-block;
  width: 100%;
  max-width: 1200px;
  height: auto;
}

/* Hero */

.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: linear-gradient(
    to bottom right in oklab,
    var(--deep-blue),
    var(--mid-blue),
    var(--medium-blue)
  );
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 80%, rgba(56, 178, 172, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(72, 187, 120, 0.1) 0%, transparent 50%);
}
.hero .container {
  position: relative;
  padding-block: 5rem;
}
.hero h1 {
  color: #fff;
  font-size: 1.875rem;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 0.75rem;
}
.tagline {
  display: inline-block;
  background: rgb(255 255 255 / 0.1);
  border: 1px solid rgb(255 255 255 / 0.2);
  border-radius: 0.5rem;
  padding: 0.75rem 1.5rem;
  color: #fff;
  font-weight: 500;
  line-height: 1.556;
  margin-bottom: 2rem;
}
.hero-points {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  list-style: none;
}
.hero-points li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  color: rgb(255 255 255 / 0.9);
}
.hero-points .check {
  margin-top: 0.125rem;
}
.offered-by {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgb(255 255 255 / 0.15);
}
.offered-by > div {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}
.offered-by span {
  color: rgb(255 255 255 / 0.7);
  font-size: 0.75rem;
  line-height: 1.333;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.logo-chip {
  width: auto;
  background: rgb(255 255 255 / 0.95);
  border-radius: 0.5rem;
  padding: 0.5rem;
}
.offered-by .dpdc {
  height: 70px;
}
.offered-by .flint {
  height: 2.5rem;
}

/* Traditional training vs QMSR in Action */

.compare {
  background: var(--warm-gray);
}
.compare-cards {
  display: grid;
  gap: 2.5rem;
  max-width: 1000px;
  margin-inline: auto;
}
.card {
  background: #fff;
  border-radius: 1rem;
  box-shadow: var(--shadow);
}
.compare-card {
  overflow: hidden;
}
.compare-card h3 {
  font-family: inherit;
  padding: 1.5rem 2rem;
  color: #fff;
  font-size: 1.25rem;
  line-height: 1.4;
  font-weight: 700;
}
.compare-card.traditional h3 {
  background: linear-gradient(to right in oklab, #a0aec0, var(--text-muted));
}
.compare-card.qmsr h3 {
  background: var(--teal-gradient);
}
.compare-card ul {
  list-style: none;
  padding: 2rem;
}
.compare-card li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-block: 1rem;
  color: var(--text-muted);
}
.compare-card li + li {
  border-top: 1px solid var(--divider);
}
.compare-card.qmsr li {
  color: var(--text-dark);
}

/* Business teaser */

.teaser {
  padding-block: 4rem;
  background: linear-gradient(to right in oklab, var(--accent-orange), var(--dark-orange));
  text-align: center;
}
.teaser h2 {
  color: #fff;
  font-size: 1.5rem;
  line-height: 1.333;
  font-weight: 700;
  margin-bottom: 1rem;
}
.teaser p {
  color: rgb(255 255 255 / 0.95);
  max-width: 700px;
  margin: 0 auto 1.5rem;
  line-height: 1.556;
}
.teaser a {
  display: inline-block;
  background: #fff;
  color: var(--accent-orange);
  padding: 0.75rem 1.75rem;
  border-radius: 0.5rem;
  font-weight: 600;
  transition: translate 0.15s;
}
.teaser a:hover {
  translate: 0 -0.125rem;
}

/* How we build habits */

.steps {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  max-width: 1000px;
  margin-inline: auto;
  list-style: none;
}
.step {
  flex: 1;
  z-index: 10;
  text-align: center;
  padding: 2.5rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.step:not(:first-child) {
  margin-top: 1.5rem;
}
.step:hover,
.role:hover {
  translate: 0 -0.5rem;
  box-shadow: var(--shadow-raised);
}
.step-icon {
  width: 5rem;
  height: 5rem;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  font-size: 1.875rem;
  line-height: 1.2;
}
.step-icon.assign {
  background: linear-gradient(to bottom right in oklab, #fbd38d, var(--accent-orange));
}
.step-icon.do {
  background: linear-gradient(to bottom right in oklab, var(--light-blue), var(--medium-blue));
}
.step-icon.reflect {
  background: linear-gradient(to bottom right in oklab, var(--accent-teal), var(--accent-green));
}
.step h3 {
  color: var(--deep-blue);
  font-size: 1.25rem;
  line-height: 1.4;
  font-weight: 700;
  margin-bottom: 0.75rem;
}
.step p {
  color: var(--text-muted);
}
.step-arrow {
  display: none;
  align-items: center;
  z-index: 20;
  margin-inline: -1rem;
  color: var(--medium-blue);
}

/* Roles */

.roles-section {
  background: linear-gradient(to bottom in oklab, var(--warm-gray), #fff);
}
.roles {
  display: grid;
  gap: 1.25rem;
  max-width: 1100px;
  margin-inline: auto;
  list-style: none;
}
.role {
  padding: 2rem;
  text-align: center;
  border: 2px solid transparent;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.role:hover {
  translate: 0 -0.25rem;
  border-color: var(--accent-teal);
}
.role-icon {
  width: 72px;
  height: 72px;
  border-radius: 9999px;
  background: var(--mint-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  font-size: 1.875rem;
  line-height: 1.2;
}
.role h3 {
  color: var(--deep-blue);
  font-weight: 600;
  line-height: 1.25;
}

/* Proof */

.proof {
  position: relative;
  overflow: hidden;
  padding-block: 5rem;
  background: var(--deep-blue);
  text-align: center;
}
.proof::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 50%, rgba(56, 178, 172, 0.2) 0%, transparent 50%);
}
.proof .container {
  position: relative;
}
.proof h2 {
  color: #fff;
  font-size: 1.5rem;
  line-height: 1.333;
  font-weight: 700;
  margin-bottom: 2.5rem;
}
.proof ul {
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  list-style: none;
}
.proof li {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: rgb(255 255 255 / 0.9);
  text-align: left;
}

/* Business case */

.business-case {
  background: var(--warm-gray);
}
.business-case-body {
  max-width: 900px;
  margin-inline: auto;
}
.question {
  background: #fff;
  border-radius: 1.5rem;
  padding: 3rem;
  text-align: center;
  box-shadow: var(--shadow);
  margin-bottom: 3rem;
}
.question h3 {
  color: var(--deep-blue);
  font-size: 1.25rem;
  line-height: 1.625;
  font-weight: 700;
  margin-bottom: 2rem;
}
.question-figure {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 2.5rem;
  margin-bottom: 2rem;
}
.percentage {
  position: relative;
  flex-shrink: 0;
  width: 150px;
  height: 150px;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: conic-gradient(var(--accent-orange) 0% 55%, #e2e8f0 55% 100%);
}
.percentage::before {
  content: '';
  position: absolute;
  width: 110px;
  height: 110px;
  background: #fff;
  border-radius: 9999px;
}
.percentage span {
  position: relative;
  color: var(--accent-orange);
  font-size: 1.875rem;
  line-height: 1.2;
  font-weight: 800;
}
.question-figure p {
  color: var(--text-muted);
  max-width: 280px;
  text-align: left;
  line-height: 1.625;
}
.question > p {
  color: var(--text-muted);
}
.benefits {
  display: grid;
  gap: 2rem;
  list-style: none;
}
.benefit {
  padding: 2rem;
  text-align: center;
}
.benefit-icon {
  font-size: 2.25rem;
  line-height: 1.111;
  margin-bottom: 1rem;
}
.benefit h4 {
  color: var(--deep-blue);
  font-weight: 700;
  margin-bottom: 0.75rem;
}
.benefit p {
  color: var(--text-muted);
  font-size: 0.875rem;
  line-height: 1.625;
}

/* Contact */

.contact .container {
  max-width: 1000px;
  display: grid;
  gap: 5rem;
  align-items: start;
}
.contact h2 {
  color: var(--deep-blue);
  font-size: 1.875rem;
  line-height: 1.25;
  font-weight: 700;
  margin-bottom: 1.25rem;
}
.contact-intro {
  color: var(--text-muted);
  line-height: 1.625;
  margin-bottom: 2rem;
}
.contact-links {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  list-style: none;
}
.contact-links li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.contact-links a {
  color: var(--medium-blue);
  transition: color 0.15s;
}
.contact-links a:hover {
  color: var(--accent-teal);
}

.form-panel {
  background: var(--warm-gray);
  border-radius: 1.5rem;
  padding: 3rem;
  box-shadow: var(--shadow);
}
.form-panel form {
  position: relative;
}
.form-row {
  margin-bottom: 1.75rem;
}
.name-row {
  display: grid;
  gap: 1.25rem;
}
.form-label {
  display: block;
  color: var(--deep-blue);
  font-size: 0.875rem;
  line-height: 1.429;
  font-weight: 600;
  margin-bottom: 0.625rem;
}
.text-field {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 2px solid var(--border);
  border-radius: 0.75rem;
  background: #fff;
  font-size: 1rem;
  line-height: 1.5;
  transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}
.text-field:focus {
  outline: none;
  border-color: var(--accent-teal);
  box-shadow: 0 0 0 4px rgb(56 178 172 / 0.1);
}
.choice {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  cursor: pointer;
}
.choice input {
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
  accent-color: var(--accent-teal);
  cursor: pointer;
}
.choice span {
  color: var(--text-dark);
  font-size: 0.875rem;
  line-height: 1.429;
}
.role-choices {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
#otherRole {
  display: none;
  margin-top: 0.75rem;
}
.role-choices:has(input[value='Other']:checked) + #otherRole {
  display: block;
}
/* Without :has(), always show it; the function ignores it unless Other is ticked. */
@supports not selector(:has(*)) {
  #otherRole {
    display: block;
  }
}
.confidence {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.625rem;
}
.confidence > div {
  flex: 1;
  min-width: 60px;
}
.confidence input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.confidence label {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1rem;
  background: #fff;
  border: 2px solid var(--border);
  border-radius: 0.75rem;
  cursor: pointer;
  transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}
.confidence label:hover,
.confidence input:checked + label {
  border-color: var(--accent-teal);
}
.confidence input:checked + label {
  background: var(--mint-gradient);
}
.confidence input:focus-visible + label {
  outline: 2px solid var(--medium-blue);
  outline-offset: 2px;
}
.confidence-number {
  color: var(--deep-blue);
  font-family: var(--heading-font);
  font-size: 1.25rem;
  line-height: 1.4;
  font-weight: 700;
  margin-bottom: 0.25rem;
}
.confidence-label {
  color: var(--text-muted);
  font-size: 10px;
  text-align: center;
}
.business-case-choice {
  align-items: flex-start;
}
.business-case-choice input {
  margin-top: 0.125rem;
}
.submit-btn {
  width: 100%;
  padding: 1rem 2rem;
  background: var(--teal-gradient);
  color: #fff;
  border-radius: 0.75rem;
  font-family: var(--heading-font);
  font-size: 1.125rem;
  line-height: 1.556;
  font-weight: 600;
  cursor: pointer;
  box-shadow:
    0 10px 15px -3px rgb(56 178 172 / 0.3),
    0 4px 6px -4px rgb(56 178 172 / 0.3);
  transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}
.submit-btn:hover {
  translate: 0 -0.125rem;
  box-shadow:
    0 20px 25px -5px rgb(56 178 172 / 0.4),
    0 8px 10px -6px rgb(56 178 172 / 0.4);
}
.honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* What the form's result pages show in place of the form */

.result-container {
  max-width: 640px;
}
.result {
  text-align: center;
}
.result .check {
  width: 4rem;
  height: 4rem;
  margin: 0 auto 1.5rem;
}
.result h1 {
  color: var(--deep-blue);
  font-size: 1.5rem;
  line-height: 1.333;
  font-weight: 700;
  margin-bottom: 0.75rem;
}
.result p {
  color: var(--text-muted);
}
.result p + p {
  margin-top: 1rem;
}
.result a {
  color: var(--medium-blue);
}
.result a:hover {
  color: var(--accent-teal);
}

/* Footer */

.qmsr-footer {
  padding-block: 2.5rem;
  background: var(--deep-blue);
  text-align: center;
}
.qmsr-footer .logos {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2.5rem;
  margin-bottom: 1.5rem;
}
.qmsr-footer .logo-chip {
  padding: 0.625rem;
}
.qmsr-footer .dpdc {
  height: 5rem;
}
.qmsr-footer .flint {
  height: 45px;
}
.qmsr-footer p {
  color: rgb(255 255 255 / 0.6);
  font-size: 0.875rem;
  line-height: 1.429;
}

@media (min-width: 640px) {
  .roles {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 768px) {
  .hero h1,
  .section-title,
  .contact h2 {
    font-size: 2.25rem;
  }
  .section-title {
    line-height: 1.111;
  }
  .teaser h2,
  .proof h2 {
    font-size: 1.875rem;
    line-height: 1.2;
  }
  .question h3 {
    font-size: 1.5rem;
  }
  .compare-cards {
    grid-template-columns: repeat(2, 1fr);
  }
  .roles {
    grid-template-columns: repeat(3, 1fr);
  }
  .proof ul {
    flex-direction: row;
    gap: 3rem;
  }
  .question-figure {
    flex-direction: row;
  }
  .benefits {
    grid-template-columns: repeat(3, 1fr);
  }
  .name-row {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .hero .container > div {
    max-width: calc((100% - 4rem) * 1.2 / 2.2);
  }
  .steps {
    flex-direction: row;
  }
  .step:not(:first-child) {
    margin-top: 0;
  }
  .step:first-child {
    margin-right: -0.5rem;
  }
  .step:nth-child(3) {
    margin-inline: -0.5rem;
  }
  .step:last-child {
    margin-left: -0.5rem;
  }
  .step-arrow {
    display: flex;
  }
  .roles {
    grid-template-columns: repeat(5, 1fr);
  }
  .contact .container {
    grid-template-columns: 1fr 1.2fr;
  }
}
