:root {
  --bg: #fcfcfc;
  --ink: #333333;
  --muted: #696969;
  --line: #dedbd5;
  --panel: #ffffff;
  --secondary: #6b238c;
  --secondary-soft: #f2e9f6;
  --secondary-dark: #48105f;
  --shadow: 0 24px 70px rgba(51, 51, 51, 0.1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

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

.diagnostic {
  padding: 28px clamp(18px, 4vw, 56px) 54px;
}

.brand-row,
.hero-grid,
.testimonials-inner,
.director-inner {
  width: min(1180px, 100%);
  margin: 0 auto;
}

.brand-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: clamp(48px, 8vh, 84px);
}

.brand {
  color: var(--ink);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.brand-logo {
  display: block;
  width: clamp(150px, 16vw, 205px);
  height: auto;
}

.status-pill {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 14px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.72);
  font-size: 0.9rem;
}

.hero-grid {
  --hero-gap: clamp(28px, 6vw, 72px);
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(420px, 1.05fr);
  gap: var(--hero-gap);
  align-items: start;
}

.hero-copy {
  max-width: 680px;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--secondary);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 800;
}

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

h1 {
  margin-bottom: 22px;
  font-size: clamp(2.45rem, 4.4vw, 4.25rem);
  line-height: 1;
  letter-spacing: 0;
  max-width: 900px;
}

.lead {
  margin: 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.28rem);
  line-height: 1.55;
  max-width: 680px;
}

.typeform {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: clamp(20px, 3vw, 32px);
  min-height: 460px;
  overflow: visible;
}

.form-pointer {
  position: absolute;
  z-index: 3;
  top: -18px;
  left: 50%;
  width: clamp(66px, 8vw, 86px);
  height: auto;
  pointer-events: none;
  transform: translateX(-50%);
  animation: pointer-float 1800ms ease-in-out infinite alternate;
}

.progress {
  height: 5px;
  background: #ece9e2;
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 24px;
}

.progress-bar {
  display: block;
  height: 100%;
  width: 33%;
  background: var(--secondary);
  border-radius: inherit;
  transition: width 240ms ease;
}

.step {
  display: none;
  animation: rise 220ms ease;
}

.step.active {
  display: block;
}

.step-count {
  display: inline-block;
  color: var(--secondary);
  font-size: 0.84rem;
  font-weight: 800;
  margin-bottom: 16px;
}

.step h2,
.section-heading h2 {
  font-size: clamp(1.7rem, 2.45vw, 2.25rem);
  line-height: 1;
  letter-spacing: 0;
  margin-bottom: 14px;
}

.step-copy {
  color: var(--muted);
  line-height: 1.55;
  margin-bottom: 20px;
}

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

.other-problem {
  margin-top: 12px;
}

.chip,
.choice,
.primary-action,
.secondary-action {
  border-radius: 8px;
  min-height: 38px;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, color 160ms ease;
}

.chip {
  border: 1px solid var(--line);
  background: #fbfaf7;
  color: var(--ink);
  padding: 8px 11px;
  text-align: left;
  font-size: 0.92rem;
  line-height: 1.25;
}

.chip:hover,
.chip.selected {
  border-color: var(--secondary);
  background: var(--secondary-soft);
}

.chip.selected {
  color: var(--secondary-dark);
  font-weight: 700;
}

.actions {
  margin-top: 18px;
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

.split-actions {
  justify-content: space-between;
}

.primary-action,
.secondary-action,
.choice {
  border: 1px solid transparent;
  padding: 0 18px;
  font-weight: 800;
}

.primary-action {
  background: var(--secondary);
  color: var(--bg);
  border-color: var(--secondary);
}

.primary-action:hover {
  background: var(--secondary-dark);
  border-color: var(--secondary-dark);
  transform: translateY(-1px);
}

.secondary-action {
  background: transparent;
  color: var(--muted);
  border-color: var(--line);
}

.secondary-action:hover {
  color: var(--secondary);
  border-color: var(--secondary);
}

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

.choice {
  background: #fbfaf7;
  border-color: var(--line);
  color: var(--ink);
  height: 86px;
  font-size: 1.1rem;
}

.choice.yes {
  background: var(--secondary);
  color: #ffffff;
  border-color: var(--secondary);
}

.choice:hover {
  transform: translateY(-2px);
  border-color: var(--secondary);
}

label {
  display: block;
  color: var(--ink);
  font-weight: 700;
  margin-bottom: 14px;
}

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

input,
textarea {
  width: 100%;
  margin-top: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfaf7;
  color: var(--ink);
  padding: 13px 12px;
  outline: none;
}

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

input:focus,
textarea:focus {
  border-color: var(--secondary);
  background: #ffffff;
}

.form-message {
  min-height: 24px;
  color: var(--secondary);
  font-weight: 700;
  margin: 6px 0 0;
}

.link-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.testimonials {
  background: #f2f3f4;
  padding: 68px clamp(18px, 4vw, 56px) 74px;
}

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

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

.testimonial {
  border: 1px solid rgba(107, 35, 140, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  padding: 22px;
  min-height: 228px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 18px 42px rgba(51, 51, 51, 0.06);
}

.testimonial blockquote {
  position: relative;
  font-size: 1rem;
  line-height: 1.42;
  margin-bottom: 24px;
  margin-left: 0;
  margin-right: 0;
  padding-top: 28px;
  font-style: italic;
  color: var(--ink);
}

.testimonial blockquote::before {
  content: "“";
  position: absolute;
  top: -14px;
  left: -2px;
  color: var(--secondary);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 4.5rem;
  font-style: normal;
  line-height: 1;
  opacity: 0.82;
}

.testimonial footer {
  display: grid;
  gap: 4px;
}

.testimonial strong {
  font-size: 0.98rem;
}

.testimonial span {
  color: var(--muted);
  font-size: 0.9rem;
}

.logo-frieze {
  margin-top: 42px;
  border-top: 1px solid rgba(51, 51, 51, 0.08);
  border-bottom: 1px solid rgba(51, 51, 51, 0.08);
  padding: 22px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  flex-wrap: wrap;
  opacity: 0.48;
  filter: grayscale(1);
}

.logo-frieze img {
  display: block;
  max-width: 150px;
  max-height: 38px;
  object-fit: contain;
}

.director {
  padding: 74px clamp(18px, 4vw, 56px) 86px;
  background: var(--bg);
}

.director-inner {
  display: grid;
  grid-template-columns: minmax(150px, 0.28fr) minmax(0, 0.72fr);
  gap: clamp(24px, 4vw, 52px);
  align-items: center;
}

.director-photo {
  width: min(216px, 100%);
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 50%;
  border: 7px solid #ffffff;
  box-shadow: var(--shadow);
}

.director-copy {
  max-width: 760px;
}

.director-copy h2 {
  font-size: clamp(2rem, 3.2vw, 3.2rem);
  line-height: 1;
  margin-bottom: 22px;
}

.director-copy blockquote {
  margin: 0 0 20px;
  color: var(--ink);
  font-size: clamp(1.15rem, 2vw, 1.55rem);
  font-style: italic;
  font-weight: 650;
  line-height: 1.35;
}

.director-copy p {
  color: var(--muted);
  line-height: 1.62;
}

.director-signature {
  display: grid;
  gap: 4px;
  margin-top: 22px;
}

.director-signature strong {
  color: var(--ink);
  font-size: 1.08rem;
}

.director-signature span {
  color: var(--secondary);
  font-weight: 800;
}

.director-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 26px clamp(18px, 4vw, 56px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  background: #ffffff;
}

.site-footer img {
  width: min(172px, 52vw);
  height: auto;
}

.site-footer p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pointer-float {
  from {
    transform: translate(-50%, -2px);
  }
  to {
    transform: translate(-50%, 7px);
  }
}

@media (max-width: 980px) {
  .hero-grid {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .hero-copy {
    order: 1;
  }

  .typeform {
    order: 2;
    min-height: auto;
  }

  .form-pointer {
    top: -16px;
    width: 70px;
  }

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

  .logo-frieze {
    justify-content: flex-start;
  }

  .director-inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .diagnostic {
    padding-top: 18px;
  }

  .brand-row {
    align-items: flex-start;
    margin-bottom: 38px;
  }

  .status-pill {
    font-size: 0.78rem;
  }

  .form-pointer {
    top: -14px;
    width: 58px;
  }

  .problem-grid,
  .field-grid,
  .choice-row,
  .testimonial-grid {
    grid-template-columns: 1fr;
  }

  .actions,
  .split-actions {
    flex-direction: column-reverse;
  }

  .primary-action,
  .secondary-action {
    width: 100%;
  }

  .director-photo {
    width: min(170px, 58vw);
  }

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