/* How it works — clinician */

.wf-hero {
  padding-top: 160px;
  padding-bottom: 100px;
  min-height: 100svh;
  display: flex;
  align-items: center;
}
.wf-hero__split {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 56px;
  align-items: center;
}
.wf-hero__visual {
  margin: 0;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--paper-edge);
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4 / 3;
  background: var(--paper-warm);
}
.wf-hero__visual img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 900px) {
  .wf-hero__split { grid-template-columns: 1fr; gap: 32px; }
}

.wf-stub {
  display: inline-block;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  padding: 2px 8px;
  margin: 0 4px;
  border-radius: 6px;
  background: rgba(255, 200, 90, 0.18);
  color: #8a6800;
  border: 1px dashed rgba(180, 130, 0, 0.45);
}

/* Signal-path diagram + supporting notes */
.wf-signal {
  border-radius: 26px;
  background: radial-gradient(ellipse at top, #f6f3ff 0%, #ebe5ff 70%);
  border: 1px solid var(--paper-edge);
  padding: 40px;
}
.wf-signal__figure {
  margin: 0 0 32px;
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--paper-edge);
}
.wf-signal__figure img {
  width: 100%;
  height: auto;
  display: block;
}
.wf-signal__notes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.wf-signal__note {
  padding: 22px 22px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--paper-edge);
}
.wf-signal__note h4 { margin-bottom: 8px; color: var(--purple); }
.wf-signal__note p { margin: 0; font-size: 14px; color: var(--ink-body); line-height: 1.55; }
@media (max-width: 900px) {
  .wf-signal__notes { grid-template-columns: 1fr; }
}

/* Exam lane */
.wf-exam {
  display: grid;
  gap: 12px;
}
.wf-exam__lane {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 18px;
  align-items: center;
}
.wf-exam__time {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--ink-mute);
  text-transform: uppercase;
}
.wf-exam__row {
  padding: 22px 26px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid var(--paper-edge);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: center;
}
.wf-exam__row--poli {
  background: linear-gradient(135deg, #6c5cff 0%, #4f3edc 100%);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 20px 40px -16px rgba(79, 62, 220, 0.4);
}
.wf-exam__tag {
  display: inline-block;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  margin-right: 12px;
  vertical-align: middle;
}
.wf-exam__label {
  font-size: 16px;
  font-weight: 600;
  color: inherit;
}
.wf-exam__by {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--ink-mute);
}
.wf-exam__row--poli .wf-exam__by { color: rgba(255, 255, 255, 0.75); }
@media (max-width: 760px) {
  .wf-exam__lane { grid-template-columns: 1fr; gap: 6px; }
  .wf-exam__row { grid-template-columns: 1fr; gap: 6px; }
}

/* Stalls / Treatment shift */
.wf-stalls {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: 28px;
}
.stall-card {
  padding: 32px 28px;
  border-radius: 22px;
  background: var(--paper-warm);
  border: 1px solid var(--paper-edge);
}
.stall-card strong {
  display: block;
  font-family: var(--sans);
  font-weight: 800;
  font-size: clamp(40px, 5.4vw, 64px);
  line-height: 1;
  color: var(--purple);
  letter-spacing: -0.03em;
  margin-bottom: 14px;
  font-variant-numeric: tabular-nums;
}
.stall-card span {
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-body);
  display: block;
  max-width: 30ch;
}
.stall-card--accent {
  background: var(--ink);
  border-color: var(--ink);
}
.stall-card--accent strong { color: #fff; }
.stall-card--accent span { color: rgba(255, 255, 255, 0.78); }
@media (max-width: 900px) { .wf-stalls { grid-template-columns: 1fr; } }

.wf-stalls__reason {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 20px;
  align-items: start;
  padding: 24px 28px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(108, 92, 255, 0.10), rgba(79, 62, 220, 0.06));
  border: 1px solid var(--purple-200);
}
.wf-stalls__icon {
  display: inline-grid; place-items: center;
  width: 48px; height: 48px;
  border-radius: 12px;
  background: var(--purple);
  color: #fff;
}
.wf-stalls__reason p {
  margin: 0;
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink);
}
.wf-stalls__reason strong { display: block; font-weight: 700; margin-bottom: 4px; }

.wf-stalls__media {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 36px;
  align-items: center;
  margin-top: 48px;
}
.wf-stalls__visual { margin: 0; }
.wf-stalls__visual img {
  width: 100%;
  height: auto;
  border-radius: 22px;
  display: block;
  box-shadow: 0 32px 80px -32px rgba(26, 17, 73, 0.28);
}
.wf-stalls__visual figcaption {
  margin-top: 14px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--ink-body);
  max-width: 46ch;
  line-height: 1.55;
}
.wf-stalls__beats {
  display: grid;
  gap: 18px;
}
.wf-stalls__beat {
  display: grid;
  grid-template-columns: 44px 1fr;
  column-gap: 18px;
  row-gap: 4px;
  align-items: start;
  padding: 18px 20px 18px 18px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid var(--paper-edge);
}
.wf-stalls__beat-num {
  grid-row: 1 / span 2;
  display: inline-grid; place-items: center;
  width: 36px; height: 36px;
  border-radius: 12px;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 15px;
  color: #fff;
  background: linear-gradient(135deg, #6c5cff, #4f3edc);
}
.wf-stalls__beat h4 { margin: 0; font-size: 16px; font-weight: 700; color: var(--ink); }
.wf-stalls__beat p { margin: 0; font-size: 13px; line-height: 1.55; color: var(--ink-body); }
.wf-stalls__beat:nth-child(2) .wf-stalls__beat-num { background: linear-gradient(135deg, #ff9560, #d96a1a); }
.wf-stalls__beat:nth-child(3) .wf-stalls__beat-num { background: linear-gradient(135deg, #2dc0a8, #14a085); }
@media (max-width: 1000px) {
  .wf-stalls__media { grid-template-columns: 1fr; }
}

/* FAQ */
.wf-faq { display: grid; gap: 12px; max-width: 920px; }
.wf-faq details {
  padding: 24px 28px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid var(--paper-edge);
  transition: border-color 0.3s, box-shadow 0.3s;
}
.wf-faq details:hover { border-color: var(--purple-200); box-shadow: var(--shadow-sm); }
.wf-faq details[open] { border-color: var(--purple-200); box-shadow: var(--shadow); }
.wf-faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  list-style: none; cursor: pointer;
  font-family: var(--sans); font-weight: 600; font-size: 17px;
  color: var(--ink);
}
.wf-faq summary::-webkit-details-marker { display: none; }
.wf-faq summary > span { flex: 1; }
.wf-faq summary i {
  width: 26px; height: 26px;
  position: relative;
  display: inline-block;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--purple-50);
  transition: background 0.3s;
}
.wf-faq details[open] summary i { background: var(--purple); }
.wf-faq summary i::before, .wf-faq summary i::after {
  content: ""; position: absolute;
  background: var(--purple);
  border-radius: 2px;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  transition: background 0.3s, transform 0.3s;
}
.wf-faq details[open] summary i::before,
.wf-faq details[open] summary i::after { background: #fff; }
.wf-faq summary i::before { width: 11px; height: 2px; }
.wf-faq summary i::after { width: 2px; height: 11px; }
.wf-faq details[open] summary i::after { transform: translate(-50%, -50%) scaleY(0); }
.wf-faq details p {
  margin: 16px 0 0;
  color: var(--ink-body);
  font-size: 15px;
  line-height: 1.62;
  max-width: 70ch;
}

/* Contact */
.wf-contact {
  display: grid; grid-template-columns: 1fr 1.1fr; gap: 64px;
  padding: 56px 64px;
  border-radius: 28px;
  background: linear-gradient(160deg, #6c5cff 0%, #4f3edc 40%, #2a1b85 100%);
  color: #fff;
  box-shadow: 0 40px 100px -30px rgba(42, 27, 133, 0.4);
}
.wf-contact__copy .label { color: rgba(255, 255, 255, 0.65); }
.wf-contact__copy .h2 { color: #fff; }
.wf-contact__copy .sub { color: rgba(255, 255, 255, 0.82); }
.wf-contact__copy .purple { color: var(--purple-wash); }
.wf-contact__meta { list-style: none; padding: 0; margin: 32px 0 0; display: grid; gap: 18px; }
.wf-contact__meta li { display: flex; flex-direction: column; gap: 4px; }
.wf-contact__meta-label { font-family: var(--mono); font-size: 10px; letter-spacing: 0.22em; color: rgba(255, 255, 255, 0.55); }
.wf-contact__meta a { font-size: 17px; font-weight: 600; color: #fff; }
.wf-contact__meta a:hover { color: var(--purple-wash); }
.wf-contact__form { display: grid; gap: 14px; }
.wf-contact__form label {
  display: grid; gap: 6px;
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.18em;
  color: rgba(255, 255, 255, 0.6);
}
.wf-contact__form input, .wf-contact__form textarea {
  font: inherit; font-family: var(--sans);
  font-size: 15px; padding: 14px 18px; border-radius: 12px;
  background: rgba(255, 255, 255, 0.09);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.22);
  outline: none;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}
.wf-contact__form input::placeholder, .wf-contact__form textarea::placeholder { color: rgba(255, 255, 255, 0.4); }
.wf-contact__form input:focus, .wf-contact__form textarea:focus {
  border-color: #fff; background: rgba(255, 255, 255, 0.14);
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.1);
}
.wf-contact__form textarea { resize: vertical; min-height: 96px; }
.wf-contact__form button {
  margin-top: 6px; justify-self: start;
  background: #fff; color: var(--ink);
}
.wf-contact__note {
  font-family: var(--mono); font-size: 11px;
  color: rgba(255, 255, 255, 0.8);
  min-height: 18px; letter-spacing: 0.1em;
}
@media (max-width: 900px) {
  .wf-contact { grid-template-columns: 1fr; padding: 40px 32px; gap: 32px; }
}
