/* Praxiell opportunity estimator. Scoped to its own section. */
.opportunity-section {
  background: var(--parchment, #f4f0e7);
  color: var(--ink, #183b35);
}
.opportunity-layout {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
  gap: clamp(48px, 7.5vw, 110px);
  align-items: start;
}
.opportunity-copy h2 {
  max-width: 540px;
  margin-bottom: 28px;
  text-wrap: balance;
}
.opportunity-copy > p:not(.section-index) {
  max-width: 430px;
  color: var(--muted, #53665e);
  font-size: 15px;
  line-height: 1.8;
}
.opportunity-copy > .opportunity-lead {
  color: var(--ink, #183b35) !important;
  font-size: 20px !important;
  line-height: 1.6 !important;
  letter-spacing: -.025em;
}
.opportunity-prompts {
  margin: 32px 0 26px;
  padding: 0;
  list-style: none;
  max-width: 430px;
}
.opportunity-prompts li {
  display: flex;
  align-items: baseline;
  gap: 19px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line, #cdd3c7);
  font-size: 13px;
  line-height: 1.6;
}
.opportunity-prompts li:first-child {
  border-top: 1px solid var(--line, #cdd3c7);
}
.opportunity-prompts li > span {
  font-size: 10px;
  color: #67775e;
  font-variant-numeric: tabular-nums;
}
.estimate-method {
  max-width: 430px;
}
.estimate-method summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  min-height: 44px;
  cursor: pointer;
  list-style: none;
  font-size: 12px;
  color: var(--pine, #174f46);
}
.estimate-method summary::-webkit-details-marker {
  display: none;
}
.estimate-method summary > span {
  font-size: 22px;
  line-height: 1;
  transition: transform .2s ease;
}
.estimate-method[open] summary > span {
  transform: rotate(45deg);
}
.estimate-method > p {
  margin: 5px 0 0;
  font-size: 12px;
  line-height: 1.85;
  color: var(--muted, #53665e);
}
.estimate-workbench {
  --estimate-share: 50%;
  padding: clamp(25px, 3vw, 42px);
  border: 1px solid var(--line, #cdd3c7);
  border-top: 2px solid var(--brass, #b79759);
  background: var(--cream, #fbf8f1);
  box-shadow: 0 20px 50px -40px rgba(23, 79, 70, .3);
  min-width: 0;
}
.estimate-topline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding-bottom: 25px;
  border-bottom: 1px solid var(--line, #cdd3c7);
  margin-bottom: 27px;
}
.estimate-kicker {
  font-size: 9px;
  line-height: 1.5;
  font-weight: 700;
  letter-spacing: .14em;
}
.estimate-tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex-shrink: 0;
  font-size: 10px;
  color: var(--muted, #53665e);
}
.estimate-tag::before {
  content: '';
  width: 5px;
  height: 5px;
  background: var(--brass, #b79759);
  border-radius: 50%;
}
.estimate-assumptions {
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
}
.estimate-fields {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 24px;
}
.estimate-field {
  min-width: 0;
}
.estimate-field label {
  display: block;
  min-height: 35px;
  font-size: 12px;
  line-height: 1.5;
  margin-bottom: 9px;
}
.estimate-number-shell {
  position: relative;
}
.estimate-number-shell input {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 56px;
  border: 1px solid #b3c3b7;
  border-radius: 0;
  padding: 11px 42px 11px 13px;
  color: var(--pine, #174f46);
  background: #f5f6ee;
  font-family: inherit;
  font-size: 23px;
  line-height: 1.3;
  font-variant-numeric: tabular-nums;
  appearance: textfield;
  -moz-appearance: textfield;
  transition: border-color .2s, background .2s;
}
.estimate-number-shell input::-webkit-inner-spin-button,
.estimate-number-shell input::-webkit-outer-spin-button {
  appearance: none;
  margin: 0;
}
.estimate-number-shell input:focus {
  border-color: var(--pine, #174f46);
  outline: 2px solid var(--mint, #a7d3bb);
  outline-offset: 2px;
  background: #fffdf6;
}
.estimate-number-shell input[aria-invalid="true"] {
  border-color: #8a5933;
}
.estimate-number-shell > span {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 10px;
  color: var(--muted, #53665e);
  pointer-events: none;
}
.estimate-field-help {
  margin: 9px 0 0;
  font-size: 11px;
  color: var(--muted, #53665e);
  line-height: 1.7;
}
.estimate-field-error {
  margin: 7px 0 0;
  color: #80502c;
  font-size: 11px;
  line-height: 1.6;
}
.estimate-field-error[hidden] {
  display: none;
}
.estimate-reduction {
  margin-top: 26px;
}
.estimate-range-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 10px;
}
.estimate-range-heading label {
  font-size: 12px;
}
.estimate-range-heading output {
  color: var(--pine, #174f46);
  font-size: 21px;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.04em;
}
.estimate-reduction input[type="range"] {
  width: 100%;
  height: 44px;
  margin: -5px 0;
  padding: 0;
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  cursor: pointer;
  touch-action: pan-y;
}
.estimate-reduction input[type="range"]::-webkit-slider-runnable-track {
  height: 4px;
  background: linear-gradient(to right, var(--pine, #174f46) 0 var(--estimate-share), #d5ded2 var(--estimate-share) 100%);
}
.estimate-reduction input[type="range"]::-moz-range-track {
  height: 4px;
  background: #d5ded2;
}
.estimate-reduction input[type="range"]::-moz-range-progress {
  height: 4px;
  background: var(--pine, #174f46);
}
.estimate-reduction input[type="range"]::-webkit-slider-thumb {
  appearance: none;
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  margin-top: -8px;
  border: 4px solid var(--cream, #fbf8f1);
  border-radius: 50%;
  background: var(--pine, #174f46);
  box-shadow: 0 0 0 1px var(--pine, #174f46);
}
.estimate-reduction input[type="range"]::-moz-range-thumb {
  width: 12px;
  height: 12px;
  border: 4px solid var(--cream, #fbf8f1);
  border-radius: 50%;
  background: var(--pine, #174f46);
  box-shadow: 0 0 0 1px var(--pine, #174f46);
}
.estimate-reduction input[type="range"]:focus-visible {
  outline: 2px solid var(--brass, #b79759);
  outline-offset: 1px;
}
.estimate-range-scale {
  display: flex;
  justify-content: space-between;
  font-size: 9px;
  line-height: 1.5;
  color: #667b6a;
  margin-top: -1px;
}
.estimate-reduction .estimate-field-help {
  margin-top: 8px;
}
.estimate-outcome {
  margin-top: 28px;
  padding-top: 25px;
  border-top: 1px solid var(--line, #cdd3c7);
}
.estimate-result-label {
  margin-bottom: 10px;
  color: #536d5b;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .14em;
}
.estimate-primary {
  display: flex;
  align-items: center;
  gap: 19px;
  min-height: 107px;
  margin: 0 0 20px;
}
.estimate-primary > output {
  display: block;
  color: var(--pine, #174f46);
  font-size: clamp(66px, 6.5vw, 96px);
  line-height: 1;
  letter-spacing: -.07em;
  font-variant-numeric: lining-nums tabular-nums;
  min-width: 0;
  overflow-wrap: anywhere;
}
.estimate-primary > output[data-length="medium"] {
  font-size: clamp(46px, 4.5vw, 70px);
}
.estimate-primary > output[data-length="long"] {
  font-size: clamp(32px, 3.2vw, 49px);
  letter-spacing: -.055em;
}
.estimate-primary > span {
  color: var(--muted, #53665e);
  font-size: 12px;
  line-height: 1.6;
  flex-shrink: 0;
  padding-top: 9px;
}
.estimate-meter {
  height: 10px;
  position: relative;
  overflow: hidden;
  background: #e3e9dc;
}
.estimate-meter-fill {
  display: block;
  width: var(--estimate-share);
  height: 100%;
  background: var(--mint, #a7d3bb);
  transition: width .15s ease-out;
}
.estimate-meter-rule {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(to right, transparent 0, transparent calc(25% - 1px), rgba(251, 248, 241, .8) calc(25% - 1px), rgba(251, 248, 241, .8) 25%);
}
.estimate-outcome[data-invalid="true"] .estimate-meter-fill {
  width: 0;
}
.estimate-comparison {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 5px 16px;
  margin: 10px 0 17px;
}
.estimate-comparison p {
  margin: 0;
  font-size: 10px;
  color: var(--muted, #53665e);
  line-height: 1.7;
}
.estimate-comparison p:last-child > output {
  color: var(--pine, #174f46);
  font-size: 18px;
  letter-spacing: -.035em;
  font-variant-numeric: tabular-nums;
}
.estimate-disclaimer {
  font-size: 10px;
  line-height: 1.8;
  color: var(--muted, #53665e);
  max-width: 365px;
  margin: 0;
}
.estimate-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 18px;
  margin-top: 24px;
}
.estimate-actions > .button {
  font-size: 12px;
  padding: 15px 18px;
  min-height: 50px;
  gap: 22px;
}
.estimate-actions > .button[aria-disabled="true"] {
  background: #697e70;
  cursor: not-allowed;
  transform: none;
}
.estimate-reset {
  min-height: 44px;
  padding: 10px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--muted, #53665e);
  font-family: inherit;
  font-size: 10px;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: #9ba99a;
}
.estimate-reset:hover {
  color: var(--pine, #174f46);
  text-decoration-color: currentColor;
}
.estimate-visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
@media (max-width: 1100px) {
  .opportunity-layout { gap: 48px; }
  .estimate-workbench { padding: 28px; }
  .estimate-fields { gap: 18px; }
  .estimate-number-shell input { font-size: 20px; }
  .estimate-actions { align-items: flex-start; }
}
@media (max-width: 880px) {
  .opportunity-layout { grid-template-columns: minmax(0, 1fr); gap: 38px; }
  .opportunity-copy { max-width: 640px; }
  .opportunity-copy h2 { max-width: 570px; }
  .opportunity-copy > p:not(.section-index) { max-width: 520px; }
  .opportunity-prompts { display: none; }
  .estimate-method { margin-top: 20px; max-width: 520px; }
  .estimate-workbench { max-width: 680px; width: 100%; padding: 32px; }
  .estimate-field label { min-height: 0; }
  .estimate-number-shell input { font-size: 25px; }
  .estimate-primary > output { font-size: 88px; }
  .estimate-primary > output[data-length="medium"] { font-size: 65px; }
  .estimate-primary > output[data-length="long"] { font-size: 46px; }
  .estimate-actions { align-items: center; }
}
@media (max-width: 480px) {
  .opportunity-layout { gap: 30px; }
  .opportunity-copy h2 { font-size: 36px; }
  .opportunity-copy h2 br { display: none; }
  .opportunity-copy > .opportunity-lead { font-size: 19px !important; }
  .opportunity-copy > p:not(.section-index) { font-size: 14px; }
  .estimate-workbench { padding: 23px 20px; }
  .estimate-topline { gap: 12px; padding-bottom: 22px; margin-bottom: 23px; }
  .estimate-kicker { font-size: 8px; letter-spacing: .1em; max-width: 140px; }
  .estimate-tag { font-size: 9px; gap: 5px; }
  .estimate-fields { gap: 16px; }
  .estimate-field label { min-height: 34px; font-size: 11px; }
  .estimate-number-shell input { font-size: 20px; padding-left: 10px; padding-right: 31px; }
  .estimate-number-shell > span { right: 8px; font-size: 8px; }
  .estimate-field-help { font-size: 10px; }
  .estimate-range-heading label { font-size: 11px; }
  .estimate-primary { min-height: 92px; gap: 13px; margin-bottom: 16px; }
  .estimate-primary > output { font-size: 78px; }
  .estimate-primary > output[data-length="medium"] { font-size: 54px; }
  .estimate-primary > output[data-length="long"] { font-size: 34px; }
  .estimate-primary > span { font-size: 10px; }
  .estimate-actions { gap: 5px 16px; }
  .estimate-actions > .button { width: 100%; }
  .estimate-reset { margin-inline: auto; }
}
@media (prefers-reduced-motion: reduce) {
  .estimate-method summary > span,
  .estimate-number-shell input,
  .estimate-meter-fill { transition: none; }
}
