/* A single compact marketing panel, using the approved landing tokens. */
.rg-loss {
  padding-block: clamp(48px, 5vw, 72px);
  background: #f7f9fc;
  border-block: 1px solid #dfe5ef;
  scroll-margin-top: 96px;
}
.rg-loss [hidden] {
  display: none !important;
}
.rg-loss-heading {
  max-width: 840px;
  margin-bottom: 28px;
}
.rg-loss-heading h2 {
  margin: 12px 0;
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.12;
  letter-spacing: -0.04em;
}
.rg-loss-heading > p:last-child {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.6;
}
.rg-loss-app {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  border: 1px solid #dbe1ec;
  border-radius: 16px;
  background: white;
  overflow: clip;
}
.rg-loss-inputs {
  min-width: 0;
  padding: 32px 40px;
}
.rg-loss-controls {
  display: grid;
  gap: 18px;
}
.rg-loss-field {
  min-width: 0;
}
.rg-loss-field label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 8px;
}
.rg-loss-field label span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 400;
}
.rg-loss-field :is(input, select) {
  width: 100%;
  min-width: 0;
  height: 48px;
  padding: 10px 12px;
  border: 1px solid #b7c3d6;
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  font:
    500 16px/1.3 Inter,
    Arial,
    sans-serif;
  font-variant-numeric: tabular-nums;
  transition: border-color 160ms;
}
.rg-loss-field select {
  cursor: pointer;
  padding-right: 24px;
}
.rg-loss-field :is(input, select):hover {
  border-color: #617399;
}
.rg-loss :is(input, select, summary):focus-visible {
  outline: 3px solid #007c9e;
  outline-offset: 4px;
}
.rg-loss-method {
  margin-top: 20px;
  border-top: 1px solid #dfe5ef;
}
.rg-loss-method summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  list-style: none;
  min-height: 44px;
  font-size: 12px;
  font-weight: 600;
}
.rg-loss-method summary::-webkit-details-marker {
  display: none;
}
.rg-loss-method summary span {
  font-size: 20px;
  font-weight: 400;
  transition: transform 180ms;
}
.rg-loss-method[open] summary span {
  transform: rotate(45deg);
}
.rg-loss-method p {
  font-size: 12px;
  line-height: 1.65;
  color: var(--muted);
  margin-bottom: 9px;
}
.rg-loss-result {
  min-width: 0;
  background: var(--navy);
  color: white;
  padding: 32px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.rg-loss-result-label {
  font-size: 13px;
  font-weight: 500;
  color: #d0d9e9;
}
.rg-loss output {
  display: block;
  margin: 10px 0 8px;
  font-size: clamp(36px, 4.5vw, 64px);
  font-weight: 650;
  line-height: 1.1;
  letter-spacing: -0.045em;
  font-variant-numeric: tabular-nums;
  color: #ffac7b;
  overflow-wrap: anywhere;
}
.rg-loss-duration-context {
  font-size: 12px;
  line-height: 1.5;
  color: #bdc9e0;
}
.rg-loss-action {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid #35415c;
}
.rg-loss-action h3 {
  font-size: clamp(22px, 2vw, 28px);
  line-height: 1.2;
  letter-spacing: -0.025em;
}
.rg-loss-action p {
  max-width: 410px;
  margin: 12px 0 20px;
  color: #c1cbdf;
  font-size: 14px;
  line-height: 1.6;
}
.rg-loss-action .rg-button {
  min-height: 48px;
}
.rg-loss-action a:focus-visible {
  outline-color: #a1eaff;
}
.rg-loss-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
@media (max-width: 1023px) {
  .rg-loss-inputs,
  .rg-loss-result {
    padding: 28px;
  }
  .rg-loss-field select {
    font-size: 14px;
  }
  .rg-loss output {
    font-size: clamp(32px, 4.7vw, 48px);
  }
}
@media (max-width: 767px) {
  .rg-loss-app {
    grid-template-columns: minmax(0, 1fr);
  }
  .rg-loss-inputs,
  .rg-loss-result {
    padding: 24px;
  }
  .rg-loss-heading {
    margin-bottom: 24px;
  }
  .rg-loss output {
    font-size: clamp(34px, 9vw, 52px);
  }
  .rg-loss-action {
    margin-top: 20px;
    padding-top: 20px;
  }
  .rg-loss-action .rg-button {
    width: 100%;
  }
}
@media (prefers-reduced-motion: reduce) {
  .rg-loss * {
    transition: none !important;
    animation: none !important;
  }
}
