/* Load after economy.css: action hierarchy, focus states and literal copy blocks. */

.btn {
  max-width: 100%;
  white-space: normal;
  overflow-wrap: break-word;
  text-align: center;
}

.btn.btn-primary,
.economy-cta.btn-primary {
  min-height: 56px;
  padding: 16px 24px;
  border-color: #231f20;
  background: #f25050;
  color: #231f20;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.35;
  text-align: center;
  white-space: normal;
  overflow-wrap: break-word;
  transition: background-color .2s, border-color .2s, transform .2s;
}

.btn.btn-primary:hover,
.economy-cta.btn-primary:hover {
  border-color: #231f20;
  background: #f26389;
  color: #231f20;
  transform: translateY(-1px);
}

.btn.btn-primary:active,
.economy-cta.btn-primary:active {
  border-color: #231f20;
  background: #f25050;
  transform: none;
}

.nav-actions .btn {
  min-height: 44px;
  padding: 11px 18px;
  font-size: 14px;
  line-height: 1.3;
  white-space: nowrap;
}

.text-link {
  min-height: 44px;
  max-width: 100%;
  padding-top: 10px;
  padding-bottom: 10px;
  line-height: 1.45;
  text-decoration: underline;
  text-decoration-color: currentColor;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
  text-decoration-skip-ink: auto;
  overflow-wrap: break-word;
}

.text-link::after {
  display: none;
}

.text-link:hover,
.text-link:focus-visible {
  text-decoration-thickness: 2px;
}

.hero .text-link,
.subhero .text-link,
.platform-bottom .text-link {
  font-size: 16px;
}

.text-link svg {
  flex-shrink: 0;
}

/* The two rings remain visible on both the light and dark brand surfaces. */
:is(a, button, summary, input, select, textarea, [tabindex]):focus-visible,
.economy-mode input:focus-visible + span,
.economy-input-wrap:has(input:focus-visible) {
  outline: 3px solid #231f20;
  outline-offset: 3px;
  box-shadow: 0 0 0 3px #fff;
}

/* The wrapper presents focus for the borderless numeric input. */
.economy-input-wrap input:focus-visible {
  outline: none;
  box-shadow: none;
}

/* These controls sit inside containers that clip an outside focus ring. */
.platform-tabs button:focus-visible,
.platform-image-button:focus-visible {
  outline: 3px solid #fff;
  outline-offset: -3px;
  box-shadow: inset 0 0 0 6px #231f20;
}

.economy-input-wrap {
  border-color: #8c828e;
}

.economy-proposal-field .economy-input-wrap {
  border-color: #8e749f;
}

.economy-input-wrap:focus-within,
.economy-proposal-field .economy-input-wrap:focus-within {
  border-color: #7f55a3;
}

.economy-input-wrap:has(input[aria-invalid="true"]) {
  border-color: #b74646;
}

.economy-input-wrap:has(input:disabled) {
  border-color: #e8e3e8;
}

.motion-control {
  width: 44px;
  min-width: 44px;
  height: 44px;
  flex-shrink: 0;
}

.image-dialog-close,
.economy-reset,
.contact-context button {
  min-height: 44px;
}

.economy-reset,
.contact-context button {
  display: inline-flex;
  align-items: center;
  padding-top: 10px;
  padding-bottom: 10px;
  font-size: 14px;
}

.economy-field .economy-check {
  min-height: 44px;
}

.form-field input,
.form-field select {
  min-height: 52px;
  font-size: 16px;
}

.select-wrap select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: none;
}

.select-wrap::after {
  top: 50%;
  transform: translateY(-65%) rotate(45deg);
}

.form-field label,
.form-note {
  font-size: 14px;
}

.diagnostic-grid {
  align-items: start;
}

.diagnostic-grid .diagnostic-copy {
  min-width: 0;
  align-self: start;
}

.maturity-levels li {
  align-items: flex-start;
  gap: 18px;
}

.maturity-levels li > span {
  flex-shrink: 0;
  margin-top: 1px;
}

.maturity-levels li > div {
  min-width: 0;
}

.maturity-levels li p {
  margin-top: 7px;
  font-size: 16px;
  line-height: 1.5;
  color: #231f20;
}

.maturity-levels li small {
  margin-top: 9px;
  font-size: 14px;
  line-height: 1.55;
}

.maturity-levels li b {
  font-weight: 500;
}

.streaming-note {
  margin-top: 36px;
  padding-top: 26px;
  border-top: 1px solid #dedbdb;
}

.streaming-note h3 {
  margin: 0 0 14px;
  font-size: 22px;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -.02em;
}

.streaming-note p {
  margin: 0 0 12px;
  font-size: 16px;
  line-height: 1.6;
  color: #6b6767;
}

.streaming-note .text-link {
  margin-top: 2px;
  font-size: 15px;
}

.inline-source {
  color: inherit;
  font-weight: 500;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  text-decoration-skip-ink: auto;
}

.inline-source:hover,
.inline-source:focus-visible {
  text-decoration-thickness: 2px;
}

.licensing-faq {
  margin-top: 30px;
}

#streaming-faq {
  scroll-margin-top: 12px;
}

/* html already reserves the fixed header height for anchor navigation. */
.economy-section {
  scroll-margin-top: 0;
}

.economy-intro .economy-potential-label {
  margin: 0 0 8px;
  color: #7f55a3;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: .1em;
}

.economy-intro .economy-potential {
  margin: 0 0 13px;
  color: #231f20;
  font-size: clamp(36px, 3.4vw, 46px);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -.045em;
}

.economy-potential span {
  display: inline-block;
  margin-left: 4px;
  color: #625e60;
  font-size: 18px;
  font-weight: 400;
  letter-spacing: 0;
  white-space: nowrap;
}

.economy-intro > p:last-child {
  margin: 0;
  font-size: 17px;
  line-height: 1.6;
}

@media (max-width: 720px) {
  .btn.btn-primary,
  .economy-cta.btn-primary {
    min-height: 52px;
    padding: 14px 20px;
  }

  .hero .button-row,
  .subhero .button-row,
  .platform-bottom .button-row {
    gap: 12px 20px;
  }

  .maturity-levels li {
    gap: 15px;
  }

  .economy-potential span {
    font-size: 17px;
  }
}

@media (hover: none) {
  .btn.btn-primary:hover,
  .economy-cta.btn-primary:hover {
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .btn.btn-primary,
  .economy-cta.btn-primary,
  .btn.btn-primary:hover,
  .economy-cta.btn-primary:hover,
  .btn.btn-primary:active,
  .economy-cta.btn-primary:active {
    transition: none;
    transform: none;
  }
}

.no-motion .btn.btn-primary,
.no-motion .economy-cta.btn-primary,
.no-motion .btn.btn-primary:hover,
.no-motion .economy-cta.btn-primary:hover {
  transition: none;
  transform: none;
}
