/* Three Dots Brands — marketing diagnostic styles. Shared by the homepage and /marketing-diagnostic.html.
   Relies on the colour/type tokens defined on :root (index.html and assets/site.css define the same ones). */
.inline { color: var(--accent); background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat; }
.dx-head, .dx-title { text-wrap: balance; }
.dx-summary { text-wrap: pretty; }
.dx-count, .dx-hint, .dx-note, .dx-dot small, .dx-field span { letter-spacing: .01em; }
.contact-mail {
  display: inline-block; margin-top: 32px;
  font: 500 clamp(20px, 2vw, 24px) var(--font-d); letter-spacing: -.016em; color: var(--accent);
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: background-size .4s var(--ease);
}
@media (hover: hover) { .contact-mail:hover { background-size: 100% 1px; } }
.contact-meta { margin-top: 14px; color: var(--text-3); font-size: 15px; line-height: 1.7; }

.dx { display: flex; flex-direction: column; min-height: 520px; }
.dx-top { display: flex; align-items: center; gap: 16px; margin-bottom: clamp(24px, 3vw, 36px); }
.dx-progress { flex: 1; height: 2px; background: var(--hair); border-radius: 2px; overflow: hidden; }
.dx-progress i { display: block; height: 100%; background: var(--accent); transform-origin: left; transform: scaleX(.14); transition: transform .6s var(--ease); }
.dx-count { font: 500 13px var(--font-b); color: var(--text-3); font-variant-numeric: tabular-nums; min-width: 3.6em; text-align: right; }
.dx-stage { will-change: transform, opacity; }
.dx-q { border: 0; min-width: 0; }
.dx-title { font: 600 clamp(24px, 2.8vw, 34px)/1.18 var(--font-d); letter-spacing: -.026em; padding: 0; }
.dx-hint { margin: 8px 0 0; color: var(--text-3); font-size: 15px; }
.dx-opts { display: flex; flex-direction: column; border-top: 1px solid var(--hair-2); margin-top: 22px; }
.dx-opt {
  appearance: none; background: none; border: 0; border-bottom: 1px solid var(--hair-2);
  display: flex; align-items: center; gap: 16px; width: 100%; min-height: 58px; padding: 13px 4px;
  text-align: left; cursor: pointer; font: 400 clamp(16px, 1.5vw, 18px)/1.4 var(--font-b); color: var(--text-2);
  transition: color .2s, opacity .3s; user-select: none; -webkit-user-select: none;
}
.dx-opt:disabled { opacity: .35; cursor: default; }
.dx-radio { flex: none; width: 22px; height: 22px; border-radius: 50%; position: relative; box-shadow: inset 0 0 0 1.5px var(--text-3); transition: box-shadow .25s, transform .12s ease-out; }
.dx-radio::after { content: ''; position: absolute; inset: 5px; border-radius: 50%; background: var(--accent); transform: scale(0); transition: transform .4s var(--ease); }
.multi .dx-radio { border-radius: 7px; }
.multi .dx-radio::after { inset: 0; border-radius: 7px; background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 22' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 11.5l3.2 3L16 7.5'/%3E%3C/svg%3E") center/100% no-repeat; }
.dx-opt:active:not(:disabled) .dx-radio { transform: scale(.88); }
.dx-opt[aria-pressed="true"] { color: var(--text); }
.dx-opt[aria-pressed="true"] .dx-radio { box-shadow: inset 0 0 0 1.5px var(--accent); }
.dx-opt[aria-pressed="true"] .dx-radio::after { transform: scale(1); }
@media (hover: hover) { .dx-opt:not(:disabled):hover { color: var(--text); } .dx-opt:not(:disabled):hover .dx-radio { box-shadow: inset 0 0 0 1.5px var(--text-2); } }
.dx-next { margin-top: 22px; align-self: flex-start; height: 46px; padding: 0 26px; }
.dx-next:disabled { opacity: .35; cursor: default; transform: none; }
.dx-back {
  align-self: flex-start; margin-top: 18px; padding: 10px 0;
  display: inline-flex; align-items: center; gap: 4px;
  background: none; border: 0; color: var(--text-3); font-size: 15px; cursor: pointer;
}
.dx-back[hidden] { display: none; }
.dx-back svg { width: 16px; height: 16px; }
@media (hover: hover) { .dx-back:hover { color: var(--text); } }

/* result */
.dx-head { font: 600 clamp(28px, 3.4vw, 42px)/1.1 var(--font-d); letter-spacing: -.03em; }
.dx-summary { color: var(--text-2); line-height: 1.65; max-width: 36em; margin-top: 16px; }
.dx-sub { margin-top: 28px; font: 500 15px var(--font-d); }
.dx-probs { list-style: none; margin-top: 12px; }
.dx-probs li { display: grid; grid-template-columns: 1fr auto; gap: 8px 16px; padding: 10px 0; }
.dx-pn { color: var(--text); font-size: 16px; }
.dx-pv { color: var(--accent); font: 500 15px var(--font-d); font-variant-numeric: tabular-nums; }
.dx-probs .bar { grid-column: 1 / -1; height: 2px; background: var(--hair); border-radius: 2px; overflow: hidden; }
.dx-probs .bar i { display: block; height: 100%; background: var(--accent); transform-origin: left; transform: scaleX(0); transition: transform 1.1s var(--ease); }
.dx-probs li:not(:first-child) .dx-pn { color: var(--text-2); }
.dx-probs li:not(:first-child) .bar i { background: rgba(168,197,232,.5); }
.dx-dots { display: flex; gap: clamp(24px, 4vw, 44px); margin-top: 26px; }
.dx-dot { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.dx-dot svg { width: 48px; height: 48px; overflow: visible; }
.dx-fill { transform-box: fill-box; transform-origin: center; transform: scale(0); transition: transform 1s var(--ease); }
.dx-dot b { font: 500 14px var(--font-d); margin-top: 4px; }
.dx-dot small { font-size: 12px; color: var(--text-3); }
.dx-dot.weak small { color: var(--accent); }
.dx-list { list-style: none; margin-top: 10px; }
.dx-list li { position: relative; padding-left: 20px; color: var(--text-2); line-height: 1.55; }
.dx-list li + li { margin-top: 8px; }
.dx-list li::before { content: ''; position: absolute; left: 0; top: .6em; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.dx-fit { margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--hair); color: var(--text-2); max-width: 36em; }
.dx-fit b { color: var(--text); font-weight: 500; }
.dx-cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 24px; }
.dx-plain { background: none; border: 0; cursor: pointer; color: var(--accent); font-size: 16px; padding: 10px 8px; }
.dx-note { margin-top: 18px; font-size: 14px; color: var(--text-3); }
.dx-note .dx-plain { font-size: 14px; padding: 4px 2px; }
.dx-send { margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--hair); }
.dx-send .dx-sub { margin-top: 0; }
.dx-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 24px; margin-top: 8px; }
.dx-wide { grid-column: 1 / -1; }
.dx-field { display: block; }
.dx-field span { display: block; margin-top: 14px; font-size: 13px; color: var(--text-3); transition: color .2s; }
.dx-field em { font-style: normal; opacity: .7; }
.dx-field input {
  width: 100%; background: transparent; color: var(--text); border: 0; border-bottom: 1px solid var(--hair);
  border-radius: 0; padding: 8px 0 10px; font: 400 17px var(--font-b); outline: none;
  -webkit-appearance: none; appearance: none; transition: border-color .25s;
}
.dx-field input:focus { border-bottom-color: var(--accent); }
.dx-field:focus-within span { color: var(--accent); }
.dx-field.invalid input { border-bottom-color: #ff7a7a; }
.dx-field.invalid span { color: #ff9a9a; }
.dx-field input:disabled { color: var(--text-3); }
.dx-status { min-height: 1.4em; margin-top: 12px; font-size: 15px; color: var(--text-2); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

@media (max-width: 600px) {
  .dx { min-height: 470px; }
  .dx-opt { min-height: 56px; }
  .dx-dots { gap: 22px; }
  .dx-cta .btn { width: 100%; }
  .dx-fields { grid-template-columns: 1fr; }
}
