/* Marketing Meter (/marketing-meter/dotaznik/, /vysledek/). Scoped to .mm, uses the tokens from main.css. */
.mm {
  --mm-radius: 6px;
  --mm-blue-soft: #eaf2fb;
  --mm-green-soft: #e9f5ea;
  --mm-track: #e6e9ef;
  max-width: 820px;
  margin: 0 auto;
  text-align: left;
}
.mm *, .mm *::before, .mm *::after { box-sizing: border-box; }
.mm h2 { font-size: 25px; margin-bottom: 15px; }
.mm p { margin: 0 0 15px; }
.mm-loading { color: var(--text-muted); text-align: center; padding: 40px 0; }
.mm-error { background: #fdecea; color: #a1271b; border-left: 4px solid #d93025; padding: 10px 14px; border-radius: var(--mm-radius); margin: 12px 0; }
.mm-success { background: var(--mm-green-soft); color: var(--green); border-left: 4px solid var(--green-light); padding: 14px 16px; border-radius: var(--mm-radius); font-weight: 700; }
.mm-resume { background: var(--mm-blue-soft); padding: 10px 14px; border-radius: var(--mm-radius); font-size: 15px; }
.mm-help { color: var(--text-muted); }
.mm-req { color: #c5221f; }
.mm .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* buttons */
.mm-btn {
  display: inline-block; font: inherit; font-size: 16px; line-height: 1.2; padding: 12px 30px; border-radius: 3px;
  border: 1px solid var(--blue); background: var(--blue); color: #fff; cursor: pointer; text-decoration: none; text-align: center;
}
.mm-btn:hover, .mm-btn:focus-visible { background: var(--green); border-color: var(--green); color: #fff; }
.mm-btn:disabled { opacity: .5; cursor: not-allowed; background: var(--blue); border-color: var(--blue); }
.mm-btn--green { background: var(--green); border-color: var(--green); }
.mm-btn--green:hover, .mm-btn--green:focus-visible { background: var(--blue); border-color: var(--blue); }
.mm-btn--ghost { background: transparent; color: var(--text); border-color: var(--border); }
.mm-btn--ghost:hover, .mm-btn--ghost:focus-visible { background: var(--bg-soft); color: var(--text); border-color: var(--text-muted); }
.mm-btn--outline { background: #fff; color: var(--green); border-color: var(--green); padding: 10px 20px; }
.mm-link { background: none; border: 0; padding: 0; font: inherit; color: var(--blue); text-decoration: underline; cursor: pointer; }
.mm :focus-visible { outline: 3px solid rgba(40, 119, 198, .45); outline-offset: 2px; }

/* progress */
.mm-progress { margin-bottom: 24px; }
.mm-progress__meta { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 8px; font-size: 14px; color: var(--text-muted); }
.mm-chip { background: var(--mm-blue-soft); color: var(--blue); border-radius: 20px; padding: 3px 12px; font-weight: 700; font-size: 13px; }
.mm-progress__bar { height: 6px; background: var(--mm-track); border-radius: 3px; overflow: hidden; }
.mm-progress__bar span { display: block; height: 100%; background: var(--blue); transition: width .3s ease; }

/* question */
.mm-question { outline: none; }
.mm-options { display: grid; gap: 10px; margin-bottom: 24px; }
.mm-option {
  display: flex; align-items: flex-start; gap: 14px; width: 100%; text-align: left; font: inherit; font-size: 17px; line-height: 1.45;
  padding: 14px 18px; border: 1px solid var(--border); border-radius: var(--mm-radius); background: #fff; color: var(--text); cursor: pointer;
  transition: border-color .15s, background-color .15s, box-shadow .15s;
}
.mm-option:hover { border-color: var(--blue); box-shadow: 0 2px 8px rgba(40, 119, 198, .12); }
.mm-option.is-checked { border-color: var(--blue); background: var(--mm-blue-soft); box-shadow: inset 0 0 0 1px var(--blue); }
.mm-option__dot { flex: 0 0 20px; height: 20px; margin-top: 2px; border: 2px solid #9aa3ad; border-radius: 50%; position: relative; }
.mm-option.is-checked .mm-option__dot { border-color: var(--blue); }
.mm-option.is-checked .mm-option__dot::after { content: ""; position: absolute; inset: 3px; border-radius: 50%; background: var(--blue); }

.mm-nav { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 8px; }

/* technologies */
.mm-tech { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; margin-bottom: 18px; }
.mm-tech__group { border: 1px solid var(--border); border-radius: var(--mm-radius); padding: 12px 16px 8px; margin: 0; background: #fff; }
.mm-tech__group legend { font-weight: 700; padding: 0 6px; }

/* fields */
.mm-check { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 8px; cursor: pointer; line-height: 1.4; }
.mm-check input { flex: 0 0 auto; width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--blue); }
.mm-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 20px; margin: 16px 0; }
.mm-field { display: flex; flex-direction: column; gap: 6px; margin: 0 0 16px; min-width: 0; }
.mm-fields .mm-field { margin: 0; }
.mm-field--wide { grid-column: 1 / -1; }
fieldset.mm-field { border: 0; padding: 0; }
fieldset.mm-field legend { font-weight: 700; margin-bottom: 8px; padding: 0; }
.mm-field > label { font-weight: 700; font-size: 15px; }
.mm-field input[type="text"], .mm-field input[type="email"], .mm-field input[type="tel"], .mm-field select, .mm-field textarea {
  width: 100%; font: inherit; font-size: 16px; padding: 10px 12px; border: 1px solid #c7ccd3; border-radius: 3px; background: #fff; color: var(--text);
}
.mm-field input:focus, .mm-field select:focus, .mm-field textarea:focus { border-color: var(--blue); outline: 2px solid rgba(40, 119, 198, .25); outline-offset: 0; }
.mm-consent { font-size: 15px; margin: 18px 0; }
.mm-profile { margin-top: 8px; }

/* result */
.mm-hero { text-align: center; background: #fff; border: 1px solid var(--border); border-radius: 10px; padding: 32px 28px 24px; margin-bottom: 20px; box-shadow: 0 4px 20px rgba(0, 0, 0, .05); }
.mm-kicker { text-transform: uppercase; letter-spacing: .08em; font-size: 13px; font-weight: 700; color: var(--text-muted); }
.mm-hero__score { margin: 4px 0 6px !important; line-height: 1; }
.mm-hero__score strong { font-size: 76px; color: var(--blue); }
.mm-hero__score span { font-size: 28px; color: var(--text-muted); }
.mm-hero__tagline { font-size: 21px; font-weight: 700; max-width: 560px; margin: 0 auto 22px !important; }
.mm-hero .mm-scale { max-width: 560px; margin: 0 auto; }
.mm-hero__bench { margin: 18px 0 0 !important; color: var(--text-muted); }

.mm-scale { position: relative; }
.mm-scale__track { position: relative; height: 12px; background: var(--mm-track); border-radius: 6px; }
.mm-scale__fill { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 6px; background: linear-gradient(90deg, var(--blue), var(--green-light)); }
.mm-scale__marker { position: absolute; top: 50%; width: 22px; height: 22px; margin: -11px 0 0 -11px; border-radius: 50%; background: #fff; border: 4px solid var(--blue); box-shadow: 0 1px 4px rgba(0, 0, 0, .2); }
.mm-scale__ticks { display: flex; justify-content: space-between; font-size: 12px; color: var(--text-muted); margin-top: 6px; }

.mm-card { background: #fff; border: 1px solid var(--border); border-radius: 10px; padding: 24px 28px; margin-bottom: 20px; }
.mm-card--next { border-left: 4px solid var(--green-light); }
.mm-modules { display: grid; gap: 18px; }
.mm-module__head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 6px; }
.mm-module__name { font-weight: 700; }
.mm-module__score { font-size: 20px; color: var(--blue); }
.mm-module .mm-scale__track { height: 10px; }
.mm-module .mm-scale__marker { width: 18px; height: 18px; margin: -9px 0 0 -9px; border-width: 3px; }
.mm-cta__text { font-weight: 700; }
.mm-cta { display: flex; flex-wrap: wrap; gap: 10px; }
.mm-contact { background: var(--bg-soft); }
.mm-contact__form .mm-fields { grid-template-columns: repeat(3, 1fr); }
.mm-share { font-size: 14px; color: var(--text-muted); text-align: center; word-break: break-all; }
.mm-share code { background: var(--bg-softer); padding: 2px 6px; border-radius: 3px; }

/* terms page */
.mm-terms { max-width: 820px; margin: 0 auto; }
.mm-terms h2 { font-size: 22px; margin-top: 30px; }
.mm-terms__sub { font-weight: 700; color: var(--text-muted); }

@media (max-width: 700px) {
  .mm h2 { font-size: 21px; }
  .mm-option { font-size: 16px; padding: 12px 14px; }
  .mm-fields, .mm-contact__form .mm-fields { grid-template-columns: 1fr; }
  .mm-card, .mm-hero { padding: 20px 16px; }
  .mm-hero__score strong { font-size: 60px; }
  .mm-nav .mm-btn { padding: 12px 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .mm-progress__bar span, .mm-option { transition: none; }
}
