:root {
  color-scheme: light;
  --brief-primary: #6d28d9;
  --brief-electric: #a855f7;
  --brief-surface: #f7f4ff;
  --brief-border: #e6ddf8;
  --brief-ink: #0b0b12;
  --brief-muted: #6f6879;
  --brief-success: #22c55e;
  --brief-error: #ff5a5f;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: #fff;
}

html[data-auth-pending] body {
  visibility: hidden;
}

body.brief-page {
  min-height: 100vh;
  margin: 0;
  color: var(--brief-ink);
  background:
    radial-gradient(circle at 8% 12%, rgba(168, 85, 247, 0.1), transparent 25rem),
    radial-gradient(circle at 92% 88%, rgba(109, 40, 217, 0.08), transparent 28rem),
    #fff;
  font-family: "Manrope", sans-serif;
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.brief-header {
  width: min(760px, calc(100% - 48px));
  min-height: 86px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 0 auto;
}

.brief-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--brief-ink);
  text-decoration: none;
  font-size: 1.18rem;
  font-weight: 800;
  letter-spacing: -0.045em;
}

.brief-logo img {
  width: 31px;
  height: 31px;
  object-fit: contain;
}

.brief-header-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--brief-muted);
  font-size: 0.76rem;
}

.brief-header-actions strong {
  color: #302a38;
}

.brief-header-actions button {
  padding: 9px 13px;
  border: 1px solid var(--brief-border);
  border-radius: 10px;
  color: #51495d;
  background: rgba(255, 255, 255, 0.78);
  cursor: pointer;
}

.brief-public-back {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  padding: 9px 13px;
  border: 1px solid #342c42;
  border-radius: 10px;
  color: #d7d1dd;
  background: #111018;
  text-decoration: none;
  font-size: 0.76rem;
  font-weight: 700;
}

.brief-main {
  width: min(580px, calc(100% - 48px));
  min-height: calc(100vh - 86px);
  display: grid;
  align-content: center;
  margin: 0 auto;
  padding: 0 0 44px;
}

.brief-intro {
  padding: 12px 0 22px;
  text-align: center;
}

.brief-kicker {
  color: var(--brief-primary);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.brief-intro h1 {
  margin: 13px 0 15px;
  font-size: clamp(2.25rem, 7vw, 3.2rem);
  line-height: 1;
  letter-spacing: -0.065em;
}

.brief-intro > p {
  max-width: 490px;
  margin: 0 auto;
  color: var(--brief-muted);
  font-size: 0.84rem;
  line-height: 1.65;
}

.brief-promise {
  max-width: 490px;
  display: none;
  grid-template-columns: auto 1fr;
  gap: 14px;
  margin-top: 34px;
  padding: 19px;
  border: 1px solid var(--brief-border);
  border-radius: 18px;
  background: rgba(247, 244, 255, 0.7);
}

.brief-promise > span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  color: #fff;
  background: linear-gradient(135deg, var(--brief-primary), var(--brief-electric));
}

.brief-promise strong {
  font-size: 0.86rem;
}

.brief-promise p {
  margin: 5px 0 0;
  color: var(--brief-muted);
  font-size: 0.75rem;
  line-height: 1.6;
}

.brief-card {
  min-height: 450px;
  padding: clamp(24px, 5vw, 34px);
  border: 1px solid var(--brief-border);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 30px 90px rgba(55, 31, 96, 0.13);
}

.brief-progress-copy {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  color: var(--brief-muted);
  font-size: 0.72rem;
}

.brief-progress-copy strong {
  color: #393142;
}

.brief-progress-track {
  height: 6px;
  margin-top: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: #eee9f7;
}

.brief-progress-track span {
  display: block;
  width: 16.667%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--brief-primary), var(--brief-electric));
  transition: width 260ms ease;
}

.brief-page:not(.campaign-wizard-page) .brief-progress-track span {
  width: 25%;
}

.brief-form {
  margin-top: 27px;
}

.brief-step {
  animation: brief-step-in 240ms ease both;
}

.brief-step-heading {
  display: grid;
  grid-template-columns: 45px 1fr;
  gap: 15px;
  align-items: start;
  margin-bottom: 23px;
}

.brief-step-heading > span {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  color: var(--brief-primary);
  background: var(--brief-surface);
  font-size: 0.76rem;
  font-weight: 800;
}

.brief-step-heading h2 {
  margin: 0;
  font-size: clamp(1.45rem, 2.3vw, 2rem);
  line-height: 1.16;
  letter-spacing: -0.045em;
}

.brief-step-heading p {
  margin: 7px 0 0;
  color: var(--brief-muted);
  font-size: 0.8rem;
  line-height: 1.55;
}

.brief-field {
  display: grid;
  gap: 8px;
  margin-top: 18px;
}

.brief-field > span,
.brief-choice-group > legend {
  color: #312a38;
  font-size: 0.78rem;
  font-weight: 750;
}

.brief-field em,
.brief-choice-group legend em {
  margin-left: 6px;
  color: #91899c;
  font-size: 0.68rem;
  font-style: normal;
  font-weight: 600;
}

.brief-field input,
.brief-field textarea,
.brief-field select {
  width: 100%;
  min-height: 52px;
  padding: 13px 15px;
  border: 1px solid #dcd5ea;
  border-radius: 13px;
  outline: none;
  color: var(--brief-ink);
  background: #fff;
  font-size: 0.9rem;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.brief-field textarea {
  min-height: 104px;
  resize: vertical;
  line-height: 1.55;
}

.brief-field input:focus,
.brief-field textarea:focus,
.brief-field select:focus {
  border-color: var(--brief-primary);
  box-shadow: 0 0 0 4px rgba(109, 40, 217, 0.09);
}

.brief-field.has-error input,
.brief-field.has-error textarea,
.brief-field.has-error select {
  border-color: var(--brief-error);
  background: #fffafa;
}

.brief-field > small,
.brief-group-error,
.brief-contact-error {
  color: #d9383f;
  font-size: 0.7rem;
  font-weight: 650;
  line-height: 1.45;
}

.brief-field > small:empty,
.brief-group-error:empty {
  display: none;
}

.brief-choice-group {
  display: grid;
  gap: 11px;
  margin: 20px 0 0;
  padding: 0;
  border: 0;
}

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

.brief-company-size {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.brief-size-choice {
  min-height: 112px;
  align-items: center;
  justify-content: center;
  padding: 15px 9px;
  text-align: center;
}

.brief-size-choice input {
  top: 10px;
  right: 10px;
}

.brief-size-choice strong {
  padding: 0;
  color: var(--brief-primary);
  font-size: 1.15rem;
}

.brief-size-choice small {
  font-size: 0.65rem;
}

.brief-choice {
  position: relative;
  min-height: 126px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  padding: 18px;
  border: 1px solid #ded7e9;
  border-radius: 16px;
  background: #fff;
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.brief-choice:hover {
  transform: translateY(-2px);
  border-color: #bca6dd;
}

.brief-choice:has(input:checked) {
  border-color: var(--brief-primary);
  background: var(--brief-surface);
  box-shadow: inset 0 0 0 1px var(--brief-primary);
}

.brief-choice input {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 18px;
  height: 18px;
  accent-color: var(--brief-primary);
}

.brief-choice > span {
  color: var(--brief-primary);
  font-size: 1.1rem;
  font-weight: 800;
}

.brief-choice strong {
  padding-right: 22px;
  font-size: 0.84rem;
}

.brief-choice small {
  color: var(--brief-muted);
  font-size: 0.68rem;
  line-height: 1.45;
}

.brief-choice-grid-compact .brief-choice {
  min-height: 102px;
}

.brief-auto-choice-grid .brief-choice {
  justify-content: center;
}

.brief-single-field {
  margin-top: 26px;
}

.brief-contact-phone {
  width: min(100%, calc(50% - 7px));
}

.brief-platforms {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.brief-platforms label {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 11px 14px;
  border: 1px solid #ded7e9;
  border-radius: 999px;
  color: #403749;
  background: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
}

.brief-platforms label:has(input:checked) {
  border-color: var(--brief-primary);
  color: var(--brief-primary);
  background: var(--brief-surface);
}

.brief-platforms input {
  width: 15px;
  height: 15px;
  margin: 0 7px 0 0;
  accent-color: var(--brief-primary);
}

.brief-segmented {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
}

.brief-segmented label {
  position: relative;
}

.brief-segmented input {
  position: absolute;
  opacity: 0;
}

.brief-segmented span {
  min-height: 48px;
  display: grid;
  place-items: center;
  padding: 10px;
  border: 1px solid #ded7e9;
  border-radius: 12px;
  color: #51485b;
  font-size: 0.72rem;
  font-weight: 750;
  cursor: pointer;
}

.brief-segmented input:checked + span {
  border-color: var(--brief-primary);
  color: var(--brief-primary);
  background: var(--brief-surface);
  box-shadow: inset 0 0 0 1px var(--brief-primary);
}

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

.brief-contact-error {
  margin: 13px 0 0;
  padding: 11px 13px;
  border: 1px solid rgba(255, 90, 95, 0.3);
  border-radius: 11px;
  background: #fff6f6;
}

.brief-form-status {
  min-height: 20px;
  margin-top: 15px;
  color: #d9383f;
  font-size: 0.75rem;
  font-weight: 650;
}

.brief-actions {
  display: flex;
  justify-content: flex-end;
  gap: 11px;
  margin-top: 14px;
}

.brief-actions button {
  min-height: 51px;
  padding: 0 21px;
  border-radius: 13px;
  font-size: 0.8rem;
  font-weight: 800;
  cursor: pointer;
}

.brief-back {
  border: 1px solid var(--brief-border);
  color: #5a5264;
  background: #fff;
}

.brief-next,
.brief-submit {
  border: 0;
  color: #fff;
  background: linear-gradient(135deg, var(--brief-primary), #862fe5);
  box-shadow: 0 13px 27px rgba(109, 40, 217, 0.22);
}

.brief-actions button:disabled {
  opacity: 0.62;
  cursor: wait;
}

.brief-privacy {
  margin: 17px 0 0;
  color: #91899c;
  font-size: 0.65rem;
  line-height: 1.5;
  text-align: right;
}

.brief-success {
  min-height: 420px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.brief-success[hidden] {
  display: none;
}

.brief-page:not(.campaign-wizard-page) .brief-step-heading {
  grid-template-columns: 1fr;
  justify-items: center;
  text-align: center;
}

.brief-page:not(.campaign-wizard-page) .brief-step-heading > div {
  display: grid;
  justify-items: center;
}

.brief-page:not(.campaign-wizard-page) .brief-step-heading p {
  max-width: 430px;
}

.brief-page:not(.campaign-wizard-page) .brief-field,
.brief-page:not(.campaign-wizard-page) .brief-choice-group {
  width: min(100%, 500px);
  margin-right: auto;
  margin-left: auto;
}

.brief-page:not(.campaign-wizard-page) .brief-actions {
  justify-content: center;
}

.brief-page:not(.campaign-wizard-page) .brief-privacy {
  max-width: 470px;
  margin-right: auto;
  margin-left: auto;
  text-align: center;
}

.brief-success-mark {
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  margin-bottom: 24px;
  border-radius: 50%;
  color: #fff;
  background: var(--brief-success);
  box-shadow: 0 14px 35px rgba(34, 197, 94, 0.25);
  font-size: 1.5rem;
  font-weight: 900;
}

.brief-success h2 {
  margin: 14px 0 13px;
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.055em;
}

.brief-success p {
  max-width: 490px;
  margin: 0;
  color: var(--brief-muted);
  font-size: 0.88rem;
  line-height: 1.7;
}

.brief-success a {
  margin-top: 26px;
  padding: 14px 18px;
  border-radius: 12px;
  color: #fff;
  background: var(--brief-primary);
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 800;
}

@keyframes brief-step-in {
  from {
    opacity: 0;
    transform: translateY(7px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 640px) {
  .brief-header,
  .brief-main {
    width: min(100% - 28px, 1240px);
  }

  .brief-header {
    min-height: 72px;
  }

  .brief-header-actions > span {
    display: none;
  }

  .brief-main {
    min-height: calc(100vh - 72px);
    padding: 4px 0 38px;
  }

  .brief-intro {
    padding: 14px 4px 24px;
  }

  .brief-intro h1 {
    font-size: 2.45rem;
  }

  .brief-card {
    min-height: 470px;
    padding: 23px 18px;
    border-radius: 22px;
  }

  .brief-choice-grid,
  .brief-two-columns {
    grid-template-columns: 1fr;
  }

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

  .brief-company-size {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .brief-choice {
    min-height: 104px;
  }

  .brief-auto-choice-grid .brief-choice {
    min-height: 118px;
    padding: 15px;
  }

  .brief-contact-phone {
    width: 100%;
  }

  .brief-segmented {
    grid-template-columns: 1fr;
  }

  .brief-actions {
    justify-content: stretch;
  }

  .brief-actions button {
    flex: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Explicit black-purple presentation for assisted Značka flows. */
body.brief-page {
  color: #f8f6fb;
  background:
    radial-gradient(circle at 12% 12%, rgba(109, 40, 217, 0.22), transparent 30rem),
    radial-gradient(circle at 88% 82%, rgba(168, 85, 247, 0.14), transparent 32rem),
    #08070d;
}

.brief-logo {
  color: #fff;
}

.brief-header-actions,
.brief-intro > p,
.brief-step-heading p,
.brief-choice small,
.brief-privacy {
  color: #a9a2b2;
}

.brief-header-actions strong {
  color: #fff;
}

.brief-header-actions button {
  border-color: #342c42;
  color: #d7d1dd;
  background: #111018;
}

.brief-intro h1,
.brief-step-heading h2,
.brief-success h2 {
  color: #fff;
}

.brief-card {
  border-color: #31283f;
  background: rgba(16, 14, 23, 0.96);
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.46);
}

.brief-progress-copy,
.brief-form-status {
  color: #aaa2b4;
}

.brief-progress-copy strong {
  color: #f0ecf5;
}

.brief-progress-track {
  background: #2a2434;
}

.brief-step-heading > span {
  color: #c084fc;
  background: rgba(109, 40, 217, 0.2);
}

.brief-field > span,
.brief-choice-group > legend {
  color: #f0edf4;
}

.brief-field em,
.brief-choice-group legend em {
  color: #918a9a;
}

.brief-field input,
.brief-field textarea,
.brief-field select {
  border-color: #3a3247;
  color: #fff;
  background: #0c0b12;
}

.brief-field input::placeholder,
.brief-field textarea::placeholder {
  color: #706978;
}

.brief-field input:focus,
.brief-field textarea:focus,
.brief-field select:focus {
  border-color: var(--brief-electric);
  box-shadow: 0 0 0 4px rgba(168, 85, 247, 0.13);
}

.brief-field.has-error input,
.brief-field.has-error textarea,
.brief-field.has-error select {
  border-color: var(--brief-error);
  background: #171014;
}

.brief-choice {
  border-color: #393142;
  color: #f7f3fa;
  background: #0d0c13;
}

.brief-choice:hover {
  border-color: #8b5cf6;
  background: #15111e;
}

.brief-choice:has(input:checked) {
  border-color: var(--brief-electric);
  color: #fff;
  background: rgba(109, 40, 217, 0.22);
  box-shadow:
    inset 0 0 0 1px var(--brief-electric),
    0 12px 30px rgba(109, 40, 217, 0.12);
}

.brief-choice > span,
.brief-size-choice strong {
  color: #c084fc;
}

.brief-size-choice {
  min-height: 120px;
}

.brief-platforms label,
.brief-segmented span {
  border-color: #393142;
  color: #d9d3df;
  background: #0d0c13;
}

.brief-platforms label:has(input:checked),
.brief-segmented input:checked + span {
  border-color: var(--brief-electric);
  color: #fff;
  background: rgba(109, 40, 217, 0.22);
  box-shadow: inset 0 0 0 1px var(--brief-electric);
}

.brief-back {
  border-color: #3a3247;
  color: #d9d3df;
  background: #111018;
}

.brief-success p {
  color: #aaa2b4;
}

/* Compact public brand brief: keep the active question high and easy to scan. */
@media (min-width: 641px) {
  .brief-page:not(.campaign-wizard-page) .brief-header {
    min-height: 60px;
  }

  .brief-page:not(.campaign-wizard-page) .brief-logo {
    gap: 9px;
    font-size: 1.06rem;
  }

  .brief-page:not(.campaign-wizard-page) .brief-logo img {
    width: 28px;
    height: 28px;
  }

  .brief-page:not(.campaign-wizard-page) .brief-main {
    width: min(560px, calc(100% - 48px));
    min-height: auto;
    align-content: start;
    padding: 2px 0 30px;
  }

  .brief-page:not(.campaign-wizard-page) .brief-intro {
    padding: 0 0 12px;
  }

  .brief-page:not(.campaign-wizard-page) .brief-kicker {
    font-size: 0.68rem;
  }

  .brief-page:not(.campaign-wizard-page) .brief-intro h1 {
    max-width: 520px;
    margin: 6px auto 7px;
    font-size: clamp(1.8rem, 3.2vw, 2.25rem);
    line-height: 1.04;
    letter-spacing: -0.055em;
  }

  .brief-page:not(.campaign-wizard-page) .brief-intro > p {
    font-size: 0.8rem;
    line-height: 1.4;
  }

  .brief-page:not(.campaign-wizard-page) .brief-card {
    min-height: 382px;
    padding: 22px 26px 23px;
    border-radius: 22px;
  }

  .brief-page:not(.campaign-wizard-page) .brief-form {
    margin-top: 18px;
  }

  .brief-page:not(.campaign-wizard-page) .brief-step-heading {
    gap: 9px;
    margin-bottom: 14px;
  }

  .brief-page:not(.campaign-wizard-page) .brief-step-heading > span {
    width: 38px;
    height: 38px;
    border-radius: 11px;
    font-size: 0.7rem;
  }

  .brief-page:not(.campaign-wizard-page) .brief-step-heading h2 {
    font-size: clamp(1.42rem, 2.1vw, 1.76rem);
  }

  .brief-page:not(.campaign-wizard-page) .brief-step-heading p {
    margin-top: 5px;
    font-size: 0.74rem;
  }

  .brief-page:not(.campaign-wizard-page) .brief-choice-group {
    margin-top: 12px;
  }

  .brief-page:not(.campaign-wizard-page) .brief-auto-choice-grid .brief-choice {
    min-height: 98px;
    padding: 15px 17px;
  }

  .brief-page:not(.campaign-wizard-page) .brief-size-choice {
    min-height: 100px;
    padding: 13px 8px;
  }

  .brief-page:not(.campaign-wizard-page) .brief-actions button {
    min-height: 47px;
    padding: 0 19px;
  }

  .brief-page:not(.campaign-wizard-page) .brief-privacy {
    margin-top: 11px;
  }
}

.brief-page:not(.campaign-wizard-page) .brief-card {
  border-color: var(--brief-border);
  color: var(--brief-ink);
  background: rgba(255, 255, 255, 0.98);
  box-shadow:
    0 28px 80px rgba(13, 10, 22, 0.34),
    0 0 0 1px rgba(168, 85, 247, 0.05);
}

.brief-page:not(.campaign-wizard-page) .brief-progress-copy,
.brief-page:not(.campaign-wizard-page) .brief-step-heading p,
.brief-page:not(.campaign-wizard-page) .brief-privacy,
.brief-page:not(.campaign-wizard-page) .brief-success p {
  color: var(--brief-muted);
}

.brief-page:not(.campaign-wizard-page) .brief-progress-copy strong {
  color: var(--brief-primary);
}

.brief-page:not(.campaign-wizard-page) .brief-progress-track {
  height: 7px;
  background: #eee9f7;
}

.brief-page:not(.campaign-wizard-page) .brief-step-heading > span {
  color: var(--brief-primary);
  background: var(--brief-surface);
}

.brief-page:not(.campaign-wizard-page) .brief-step-heading h2,
.brief-page:not(.campaign-wizard-page) .brief-success h2,
.brief-page:not(.campaign-wizard-page) .brief-field > span,
.brief-page:not(.campaign-wizard-page) .brief-choice-group > legend {
  color: var(--brief-ink);
}

.brief-page:not(.campaign-wizard-page) .brief-field input,
.brief-page:not(.campaign-wizard-page) .brief-field textarea,
.brief-page:not(.campaign-wizard-page) .brief-field select {
  border-color: #dcd5ea;
  color: var(--brief-ink);
  background: #fff;
}

.brief-page:not(.campaign-wizard-page) .brief-field input::placeholder,
.brief-page:not(.campaign-wizard-page) .brief-field textarea::placeholder {
  color: #91899c;
}

.brief-page:not(.campaign-wizard-page) .brief-choice {
  border-color: #ded7e9;
  color: var(--brief-ink);
  background: #fff;
}

.brief-page:not(.campaign-wizard-page) .brief-choice:hover {
  border-color: #bca6dd;
  background: #fbf9ff;
}

.brief-page:not(.campaign-wizard-page) .brief-choice strong {
  color: var(--brief-ink);
  font-size: 0.88rem;
  line-height: 1.3;
}

.brief-page:not(.campaign-wizard-page) .brief-choice small {
  color: var(--brief-muted);
  font-size: 0.7rem;
}

.brief-page:not(.campaign-wizard-page) .brief-choice:has(input:checked) {
  border-color: var(--brief-primary);
  color: var(--brief-ink);
  background: var(--brief-surface);
  box-shadow:
    inset 0 0 0 1px var(--brief-primary),
    0 10px 28px rgba(109, 40, 217, 0.12);
}

.brief-page:not(.campaign-wizard-page) .brief-back {
  border-color: var(--brief-border);
  color: #5a5264;
  background: #fff;
}

.brief-page:not(.campaign-wizard-page) .brief-privacy a {
  color: #c084fc;
  font-weight: 700;
}

.brief-page:not(.campaign-wizard-page)
  .brief-step-heading
  h2[tabindex="-1"]:focus {
  outline: none;
}

/* Final mobile pass shared by authenticated Značka questionnaires. */
@media (max-width: 640px) {
  body.brief-page {
    min-width: 320px;
    min-height: 100svh;
    overflow-x: hidden;
  }

  .brief-header {
    width: calc(100% - 24px);
    min-height: 58px;
    gap: 12px;
    padding-top: env(safe-area-inset-top);
  }

  .brief-logo {
    gap: 8px;
    font-size: 1rem;
  }

  .brief-logo img {
    width: 27px;
    height: 27px;
  }

  .brief-header-actions {
    gap: 8px;
  }

  .brief-header-actions button,
  .campaign-close-link {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    padding: 8px 11px;
    font-size: 0.7rem;
  }

  .brief-main {
    width: calc(100% - 20px);
    min-height: auto;
    align-content: start;
    padding: 0 0 max(24px, env(safe-area-inset-bottom));
  }

  .brief-intro {
    padding: 2px 4px 11px;
  }

  .brief-kicker {
    font-size: 0.63rem;
  }

  .brief-intro h1 {
    max-width: 340px;
    margin: 5px auto 7px;
    font-size: clamp(1.65rem, 8.2vw, 1.95rem);
    line-height: 1.04;
  }

  .brief-intro > p {
    max-width: 340px;
    font-size: 0.73rem;
    line-height: 1.5;
  }

  .brief-card {
    min-height: 0;
    padding: 17px 14px 19px;
    border-radius: 18px;
  }

  .brief-progress-copy {
    font-size: 0.69rem;
  }

  .brief-progress-track {
    margin-top: 8px;
  }

  .brief-form {
    margin-top: 16px;
  }

  .brief-step-heading {
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 11px;
    margin-bottom: 16px;
  }

  .brief-page:not(.campaign-wizard-page) .brief-step-heading {
    gap: 9px;
  }

  .brief-step-heading > span {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    font-size: 0.68rem;
  }

  .brief-step-heading h2 {
    font-size: clamp(1.24rem, 6.5vw, 1.48rem);
    line-height: 1.15;
  }

  .brief-step-heading p {
    margin-top: 5px;
    font-size: 0.71rem;
    line-height: 1.45;
  }

  .brief-field,
  .brief-choice-group {
    margin-top: 14px;
  }

  .brief-field input,
  .brief-field textarea,
  .brief-field select {
    min-height: 48px;
    padding: 12px;
    border-radius: 11px;
    font-size: 16px;
  }

  .brief-field textarea {
    min-height: 96px;
  }

  .brief-choice-grid {
    gap: 9px;
  }

  .brief-choice {
    min-height: 92px;
    padding: 14px;
    border-radius: 13px;
  }

  .brief-page:not(.campaign-wizard-page) .brief-auto-choice-grid .brief-choice {
    min-height: 108px;
    padding: 13px;
  }

  .brief-company-size {
    gap: 7px;
  }

  .brief-size-choice,
  body.brief-page .brief-size-choice {
    min-height: 92px;
    padding: 12px 6px;
  }

  .brief-size-choice input {
    top: 8px;
    right: 8px;
    width: 17px;
    height: 17px;
  }

  .brief-size-choice strong {
    font-size: 1rem;
  }

  .brief-segmented {
    gap: 7px;
  }

  .brief-segmented span {
    min-height: 46px;
    padding: 9px;
  }

  .brief-actions {
    width: 100%;
    gap: 8px;
    margin-top: 10px;
  }

  .brief-actions button {
    min-width: 0;
    min-height: 48px;
    padding: 0 14px;
    border-radius: 11px;
  }

  .brief-privacy {
    margin-top: 12px;
    font-size: 0.625rem;
  }

  .brief-success {
    min-height: 360px;
    padding: 12px 0;
  }

  .brief-success h2 {
    font-size: 1.85rem;
  }
}

@media (max-width: 380px) {
  .brief-header-actions button {
    padding-right: 9px;
    padding-left: 9px;
  }

  .brief-company-size {
    grid-template-columns: 1fr;
  }

  .brief-size-choice,
  body.brief-page .brief-size-choice {
    min-height: 70px;
  }
}

/* Public four-step brief: light, structured campaign-intake surface. */
body.brief-page:not(.campaign-wizard-page) {
  color: var(--brief-ink);
  background:
    radial-gradient(circle at 12% 10%, rgba(168, 85, 247, 0.12), transparent 28rem),
    radial-gradient(circle at 88% 88%, rgba(109, 40, 217, 0.09), transparent 32rem),
    #f8f6fc;
}

.brief-page:not(.campaign-wizard-page) .brief-header {
  width: min(980px, calc(100% - 48px));
}

.brief-page:not(.campaign-wizard-page) .brief-logo {
  color: var(--brief-ink);
}

.brief-page:not(.campaign-wizard-page) .brief-public-back {
  border-color: var(--brief-border);
  color: #51495d;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 8px 24px rgba(55, 31, 96, 0.06);
}

.brief-page:not(.campaign-wizard-page) .brief-public-back:hover {
  border-color: #cbb8e8;
  color: var(--brief-primary);
  background: #fff;
}

.brief-page:not(.campaign-wizard-page) .brief-main {
  width: min(980px, calc(100% - 48px));
  padding-bottom: 48px;
}

.brief-page:not(.campaign-wizard-page) .brief-intro h1 {
  color: var(--brief-ink);
}

.brief-page:not(.campaign-wizard-page) .brief-card {
  min-height: 470px;
  display: grid;
  grid-template-columns: 226px minmax(0, 1fr);
  gap: 0;
  padding: 12px;
  overflow: hidden;
  border: 1px solid rgba(109, 40, 217, 0.13);
  border-radius: 28px;
  background: #fff;
  box-shadow:
    0 30px 80px rgba(55, 31, 96, 0.12),
    0 1px 0 rgba(255, 255, 255, 0.9) inset;
}

.brief-step-index {
  padding: 25px 18px;
  border: 1px solid #e8dff5;
  border-radius: 20px;
  background:
    radial-gradient(circle at 10% 0%, rgba(168, 85, 247, 0.12), transparent 13rem),
    #f7f3fc;
}

.brief-step-index-kicker {
  display: block;
  padding: 0 10px;
  color: var(--brief-primary);
  font-size: 0.67rem;
  font-weight: 800;
  letter-spacing: 0.13em;
}

.brief-step-index ol {
  display: grid;
  gap: 7px;
  margin: 17px 0 0;
  padding: 0;
  list-style: none;
}

.brief-step-index li {
  min-height: 67px;
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 11px;
  align-items: center;
  padding: 10px;
  border: 1px solid transparent;
  border-radius: 14px;
  color: #797181;
  transition:
    border-color 180ms ease,
    background 180ms ease,
    color 180ms ease;
}

.brief-step-index li > span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: #7f758a;
  background: rgba(255, 255, 255, 0.76);
  font-size: 0.69rem;
  font-weight: 800;
}

.brief-step-index li div {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.brief-step-index li strong {
  color: #393142;
  font-size: 0.78rem;
  line-height: 1.3;
}

.brief-step-index li small {
  overflow: hidden;
  color: #8b8295;
  font-size: 0.64rem;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brief-step-index li.is-active {
  border-color: #d9c8ef;
  color: var(--brief-primary);
  background: #fff;
  box-shadow: 0 10px 26px rgba(73, 40, 121, 0.09);
}

.brief-step-index li.is-active > span {
  color: #fff;
  background: linear-gradient(135deg, var(--brief-primary), var(--brief-electric));
}

.brief-step-index li.is-active strong {
  color: var(--brief-primary);
}

.brief-step-index li.is-complete > span {
  color: var(--brief-primary);
  background: #eee5fb;
}

.brief-card-content {
  min-width: 0;
  padding: 23px 30px 26px;
}

.brief-page:not(.campaign-wizard-page) .brief-form {
  margin-top: 24px;
}

.brief-page:not(.campaign-wizard-page) .brief-step-heading {
  display: block;
  margin-bottom: 20px;
  text-align: left;
}

.brief-page:not(.campaign-wizard-page) .brief-step-heading > div {
  display: block;
}

.brief-page:not(.campaign-wizard-page) .brief-step-heading p {
  max-width: none;
}

.brief-page:not(.campaign-wizard-page) .brief-field,
.brief-page:not(.campaign-wizard-page) .brief-choice-group {
  width: 100%;
}

.brief-page:not(.campaign-wizard-page) .brief-actions {
  justify-content: flex-end;
}

.brief-page:not(.campaign-wizard-page) .brief-success {
  min-height: 390px;
}

@media (max-width: 760px) {
  .brief-page:not(.campaign-wizard-page) .brief-header,
  .brief-page:not(.campaign-wizard-page) .brief-main {
    width: calc(100% - 24px);
  }

  .brief-page:not(.campaign-wizard-page) .brief-card {
    display: block;
    padding: 9px;
    border-radius: 22px;
  }

  .brief-step-index {
    padding: 14px;
    border-radius: 16px;
  }

  .brief-step-index-kicker {
    padding: 0 2px;
  }

  .brief-step-index ol {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
    margin-top: 11px;
  }

  .brief-step-index li {
    min-height: 56px;
    grid-template-columns: 30px minmax(0, 1fr);
    gap: 8px;
    padding: 7px;
    border-radius: 11px;
  }

  .brief-step-index li > span {
    width: 29px;
    height: 29px;
    border-radius: 8px;
    font-size: 0.63rem;
  }

  .brief-step-index li strong {
    font-size: 0.71rem;
  }

  .brief-step-index li small {
    font-size: 0.59rem;
  }

  .brief-card-content {
    padding: 19px 10px 13px;
  }
}

@media (max-width: 430px) {
  .brief-page:not(.campaign-wizard-page) .brief-intro h1 {
    font-size: 1.72rem;
  }

  .brief-step-index li small {
    display: none;
  }

  .brief-page:not(.campaign-wizard-page) .brief-auto-choice-grid {
    grid-template-columns: 1fr;
  }

  .brief-page:not(.campaign-wizard-page) .brief-auto-choice-grid .brief-choice {
    min-height: 86px;
  }
}
