:root {
  color-scheme: light;
  --roi-bg: #f4f7fb;
  --roi-surface: #ffffff;
  --roi-surface-muted: #eef3f9;
  --roi-border: #d6dee9;
  --roi-text: #0f172a;
  --roi-subtle: #475569;
  --roi-accent: #ef4444;
  --roi-accent-deep: #be123c;
  --roi-success: #16a34a;
  --roi-shadow: 0 18px 44px rgba(15, 23, 42, 0.08);
  --roi-radius: 12px;
  --roi-radius-sm: 8px;
  --roi-max-width: 1240px;
  font-family: "Inter", "Segoe UI", Arial, sans-serif;
}

.roi-app,
.roi-app * {
  box-sizing: border-box;
}

body.roi-standalone {
  margin: 0;
  min-height: 100vh;
  background: linear-gradient(180deg, #f8fafc 0%, var(--roi-bg) 100%);
  color: var(--roi-text);
}

.roi-app {
  width: min(var(--roi-max-width), calc(100% - 32px));
  margin: 0 auto;
  padding: 40px 0 64px;
}

.roi-header {
  display: grid;
  gap: 16px;
  margin-bottom: 28px;
}

.roi-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  padding: 8px 12px;
  border: 1px solid rgba(239, 68, 68, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--roi-accent-deep);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.roi-header h1 {
  margin: 0;
  font-size: 48px;
  line-height: 1.04;
}

.roi-layout {
  display: grid;
  grid-template-columns: minmax(300px, 360px) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.roi-panel,
.roi-surface {
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(214, 222, 233, 0.9);
  border-radius: var(--roi-radius);
  box-shadow: var(--roi-shadow);
  backdrop-filter: blur(8px);
}

.roi-panel {
  position: sticky;
  top: 16px;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  backdrop-filter: none;
}

.roi-panel-header,
.roi-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.roi-panel-header h2,
.roi-results h2,
.roi-section-head h3 {
  margin: 0;
}

.roi-panel-header {
  margin-bottom: 18px;
}

.roi-form {
  display: grid;
  gap: 20px;
}

.roi-section {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--roi-border);
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.roi-section-incentives {
  border-color: rgba(22, 163, 74, 0.22);
  background: linear-gradient(180deg, #ffffff 0%, #f6fff9 100%);
}

.roi-section-head h3 {
  font-size: 16px;
}

.roi-section-title {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.roi-section-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 800;
}

.roi-section-icon-company {
  background: #fff7ed;
  color: #d97706;
}

.roi-section-icon-system {
  background: #fef2f2;
  color: #dc2626;
}

.roi-section-icon-storage {
  background: #eff6ff;
  color: #2563eb;
}

.roi-section-icon-finance {
  background: #f1f5f9;
  color: #475569;
}

.roi-section-icon-incentive {
  background: #f0fdf4;
  color: #16a34a;
}

.roi-section-head span {
  color: var(--roi-subtle);
  font-size: 12px;
}

.roi-field-grid {
  display: grid;
  gap: 14px;
}

.roi-coordinate-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.roi-field {
  display: grid;
  gap: 8px;
}

.roi-field label,
.roi-toggle span,
.roi-output-label,
.roi-table thead {
  color: var(--roi-subtle);
  font-size: 13px;
}

.roi-input,
.roi-select {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid var(--roi-border);
  border-radius: var(--roi-radius-sm);
  background: var(--roi-surface);
  color: var(--roi-text);
  font: inherit;
}

.roi-input:focus,
.roi-select:focus {
  outline: 2px solid rgba(239, 68, 68, 0.16);
  border-color: rgba(239, 68, 68, 0.3);
}

.roi-input-wrap {
  position: relative;
}

.roi-input-prefix,
.roi-input-suffix {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: #64748b;
  font-size: 13px;
}

.roi-input-prefix {
  left: 14px;
}

.roi-input-suffix {
  right: 14px;
}

.roi-input-wrap .roi-input[data-prefix="true"] {
  padding-left: 42px;
}

.roi-input-wrap .roi-input[data-suffix="true"] {
  padding-right: 40px;
}

.roi-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 48px;
}

.roi-benefit-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid rgba(22, 163, 74, 0.18);
  border-radius: 8px;
  background: rgba(240, 253, 244, 0.72);
}

.roi-benefit-summary span {
  color: var(--roi-subtle);
  font-size: 13px;
}

.roi-benefit-summary strong {
  color: var(--roi-success);
  font-size: 15px;
  white-space: nowrap;
}

.roi-switch {
  position: relative;
  display: inline-flex;
  align-items: center;
  width: 52px;
  height: 30px;
}

.roi-switch input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.roi-slider {
  width: 52px;
  height: 30px;
  border-radius: 999px;
  background: #cbd5e1;
  transition: background 180ms ease;
}

.roi-slider::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.15);
  transition: transform 180ms ease;
}

.roi-switch input:checked + .roi-slider {
  background-color: #008bf7;
}

.roi-switch input:checked + .roi-slider::after {
  transform: translateX(22px);
}

.roi-actions {
  display: flex;
  gap: 12px;
}

.roi-button {
  border: 0;
  border-radius: 8px;
  min-height: 48px;
  padding: 0 18px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.roi-button.primary {
  background: linear-gradient(135deg, var(--roi-accent), var(--roi-accent-deep));
  color: #ffffff;
}

.roi-button.secondary {
  background: var(--roi-surface-muted);
  color: var(--roi-text);
  border: 1px solid var(--roi-border);
}

.roi-results {
  display: grid;
  gap: 20px;
  position: relative;
}

.roi-is-calculating .roi-results::after {
  content: "";
  position: fixed;
  top: 50vh;
  left: 50vw;
  z-index: 9999;
  width: 44px;
  height: 44px;
  margin: -22px 0 0 -22px;
  border: 4px solid rgba(239, 68, 68, 0.18);
  border-top-color: var(--roi-accent);
  border-radius: 999px;
  animation: roiFastSpin 520ms linear infinite;
}

.roi-is-calculating .roi-results::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9998;
  border-radius: var(--roi-radius);
  background: rgba(248, 250, 252, 0.12);
  pointer-events: none;
}

.roi-is-calculating .roi-results .roi-value-main,
.roi-is-calculating .roi-results #taxBenefitStatus,
.roi-is-calculating .roi-results #chartMin,
.roi-is-calculating .roi-results #chartMax,
.roi-is-calculating .roi-results .roi-chart,
.roi-is-calculating .roi-results .roi-table td:nth-child(2),
.roi-is-calculating .roi-results .roi-table td:nth-child(3) {
  filter: blur(4px);
  opacity: 0.74;
  transition: filter 160ms ease, opacity 160ms ease;
}

.roi-banner {
  padding: 24px;
  background: linear-gradient(135deg, #132033 0%, #1e293b 100%);
  color: #ffffff;
  border-radius: var(--roi-radius);
  box-shadow: var(--roi-shadow);
}

.roi-banner-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 16px;
  margin-bottom: 16px;
}

.roi-banner h2 {
  margin: 0;
  font-size: 28px;
}

.roi-banner-chip {
  align-self: start;
  max-width: 240px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  font-size: 13px;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.roi-highlight-grid,
.roi-metric-grid,
.roi-bottom-grid {
  display: grid;
  gap: 18px;
}

.roi-highlight-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.roi-card {
  padding: 20px;
  border-radius: 8px;
  background: var(--roi-surface);
  border: 1px solid rgba(214, 222, 233, 0.9);
  box-shadow: var(--roi-shadow);
}

.roi-highlight-card {
  display: grid;
  align-content: center;
  gap: 8px;
  padding: 16px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.16);
  min-height: 132px;
}

.roi-highlight-value,
.roi-metric-value {
  margin-top: 10px;
  min-width: 0;
  font-weight: 800;
  line-height: 1;
}

.roi-value-shell {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  min-width: 0;
  max-width: 100%;
}

.roi-value-prefix {
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
  opacity: 0.84;
}

.roi-value-main {
  display: block;
  min-width: 0;
  max-width: 100%;
  font-size: 44px;
  font-weight: 800;
  line-height: 0.92;
  overflow-wrap: normal;
  word-break: normal;
}

.roi-highlight-value .roi-value-main {
  font-size: 42px;
}

.roi-metric-value .roi-value-main {
  font-size: 40px;
}

.roi-location-value {
  color: var(--roi-text);
  font-size: 34px;
  line-height: 1.05;
  overflow-wrap: anywhere;
}

.roi-value-suffix {
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
}

.roi-highlight-value {
  color: #ffffff;
}

.roi-banner .roi-output-label {
  color: rgba(255, 255, 255, 0.68);
}

.roi-free-tag {
  display: inline-flex;
  align-items: center;
  margin-left: 6px;
  padding: 3px 7px;
  border-radius: 999px;
  background: rgba(22, 163, 74, 0.16);
  color: #bbf7d0;
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
  vertical-align: middle;
}

.roi-lead-gate {
  position: absolute;
  z-index: 6;
  top: 520px;
  left: 50%;
  width: min(560px, calc(100% - 48px));
  transform: translateX(-50%);
  display: grid;
  gap: 0;
  padding: 0;
  overflow: visible;
  border: 1px solid rgba(214, 222, 233, 0.92);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.2);
  backdrop-filter: blur(12px);
  will-change: transform, opacity, filter;
}

.roi-wpforms-slot {
  min-height: 0;
  overflow: visible;
  padding: 22px;
}

.roi-wpforms-slot .wpforms-container {
  width: 100%;
  margin: 0 !important;
  padding: 0 !important;
}

.roi-wpforms-slot .wpforms-form,
.roi-wpforms-slot form {
  display: grid;
  gap: 0;
}

.roi-wpforms-slot .wpforms-field-container,
.roi-wpforms-slot .wpforms-field-layout-rows {
  display: grid;
  gap: 10px;
}

.roi-wpforms-slot .wpforms-layout-row {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 12px;
  margin: 0 !important;
}

.roi-wpforms-slot .wpforms-layout-column {
  width: auto !important;
  padding: 0 !important;
}

.roi-wpforms-slot .wpforms-field {
  margin: 0 !important;
  padding: 0 !important;
}

.roi-wpforms-slot #wpforms-18495-field_31 {
  display: grid;
  gap: 4px;
  margin: 0 0 12px !important;
  padding: 0 0 12px !important;
  border-bottom: 1px solid rgba(226, 232, 240, 0.9);
}

.roi-wpforms-slot .ROIFormTitle {
  margin: 0;
  color: var(--roi-text);
  font-size: 22px;
  font-weight: 850;
  letter-spacing: 0;
  line-height: 1.08;
}

.roi-wpforms-slot .ROIFormDescription {
  margin: 0;
  color: var(--roi-subtle);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
}

.roi-wpforms-slot .wpforms-field-description,
.roi-wpforms-slot .wpforms-field-sublabel {
  margin-top: 4px !important;
  color: var(--roi-subtle) !important;
  font-size: 11px !important;
  line-height: 1.35 !important;
}

.roi-wpforms-slot .wpforms-error,
.roi-wpforms-slot label.wpforms-error {
  margin-top: 4px !important;
  color: var(--roi-accent-deep) !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  line-height: 1.35 !important;
}

.roi-wpforms-slot label {
  display: block;
  margin: 0 0 5px;
  color: var(--roi-text);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.25;
}

.roi-wpforms-slot .wpforms-required-label {
  color: var(--roi-accent-deep);
}

.roi-wpforms-slot input,
.roi-wpforms-slot select,
.roi-wpforms-slot textarea {
  width: 100%;
  min-height: 38px;
  padding: 8px 10px;
  border: 1px solid var(--roi-border);
  border-radius: 8px;
  background: #ffffff;
  color: var(--roi-text);
  font: inherit;
  font-size: 13px;
  line-height: 1.35;
  box-shadow: none;
}

.roi-wpforms-slot textarea {
  min-height: 68px;
  resize: vertical;
}

.roi-wpforms-slot input:focus,
.roi-wpforms-slot select:focus,
.roi-wpforms-slot textarea:focus {
  border-color: rgba(239, 68, 68, 0.7);
  outline: 3px solid rgba(239, 68, 68, 0.13);
}

.roi-wpforms-slot .wpforms-field input.wpforms-error,
.roi-wpforms-slot .wpforms-field select.wpforms-error,
.roi-wpforms-slot .wpforms-field textarea.wpforms-error {
  border-color: var(--roi-accent-deep);
}

.roi-wpforms-slot .iti {
  width: 100%;
}

.roi-wpforms-slot .iti__selected-country {
  min-height: 38px;
  border-radius: 8px 0 0 8px;
}

.roi-wpforms-slot .iti__dropdown-content {
  z-index: 20;
  max-height: 260px;
  border-radius: 8px;
  box-shadow: 0 18px 46px rgba(15, 23, 42, 0.18);
}

.roi-wpforms-slot .wpforms-field-checkbox fieldset {
  margin: 0;
  padding: 0;
  border: 0;
}

.roi-wpforms-slot .wpforms-field-checkbox legend {
  height: 0;
  overflow: hidden;
}

.roi-wpforms-slot .wpforms-field-checkbox ul {
  margin: 0 !important;
  padding: 0 !important;
  list-style: none;
}

.roi-wpforms-slot .wpforms-field-checkbox li {
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr);
  gap: 8px;
  align-items: start;
  margin: 0 !important;
}

.roi-wpforms-slot .wpforms-field-checkbox input[type="checkbox"] {
  width: 14px;
  min-width: 14px;
  height: 14px;
  min-height: 14px;
  margin-top: 2px;
  padding: 0;
}

.roi-wpforms-slot .wpforms-field-checkbox .wpforms-field-label-inline {
  margin: 0;
  color: var(--roi-subtle);
  font-size: 11px;
  font-weight: 500;
  line-height: 1.45;
}

.roi-wpforms-slot .wpforms-captcha-math {
  display: flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  padding: 8px 10px;
  border: 1px solid var(--roi-border);
  border-radius: 8px;
  background: #f8fafc;
}

.roi-wpforms-slot .wpforms-captcha-equation {
  flex: 0 0 auto;
  color: var(--roi-text);
  font-size: 13px;
  font-weight: 700;
}

.roi-wpforms-slot .wpforms-captcha-math input[type="text"] {
  width: 70px;
  min-width: 70px;
  min-height: 34px;
}

.roi-wpforms-slot button,
.roi-wpforms-slot input[type="submit"] {
  width: 100%;
  min-height: 42px;
  border: 0;
  border-radius: 8px;
  background-color: #008bf7;
  color: #ffffff;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.roi-wpforms-slot .wpforms-submit-container {
  position: static;
  z-index: 3;
  display: grid;
  gap: 8px;
  margin: 12px -22px -22px !important;
  padding: 14px 22px 22px !important;
  background: #ffffff;
  border-top: 1px solid rgba(226, 232, 240, 0.9);
}

.roi-is-submitting .roi-wpforms-slot .wpforms-submit-container::before {
  content: "";
  justify-self: center;
  width: 22px;
  height: 22px;
  border: 3px solid rgba(239, 68, 68, 0.18);
  border-top-color: var(--roi-accent);
  border-radius: 999px;
  animation: roiFastSpin 420ms linear infinite;
}

.roi-wpforms-slot .wpforms-submit-container::after {
  content: "Free preliminary assessment. Results vary by tariff, load profile and system configuration.";
  display: block;
  max-width: 100%;
  color: var(--roi-subtle);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.45;
  text-align: center;
}

.roi-wpforms-slot .wpforms-submit-spinner {
  justify-self: center;
  animation-duration: 420ms !important;
}

.roi-wpforms-slot .wpforms-submit-spinner img,
.roi-wpforms-slot .wpforms-submit-spinner svg {
  animation: roiFastSpin 420ms linear infinite !important;
}

.roi-wpforms-slot .wpforms-submit-container button:disabled,
.roi-wpforms-slot .wpforms-submit-container input[type="submit"]:disabled {
  cursor: wait;
  filter: saturate(1.1) brightness(1.04);
  opacity: 0.9;
}

@keyframes roiFastSpin {
  to {
    transform: rotate(360deg);
  }
}

.roi-wpforms-slot .wpforms-confirmation-container,
.roi-wpforms-slot .wpforms-confirmation-container-full {
  padding: 14px 16px;
  border-radius: 8px;
  background: rgba(22, 163, 74, 0.1);
  color: #166534;
  font-weight: 700;
}

.roi-form-placeholder {
  display: grid;
  place-items: center;
  min-height: 132px;
  padding: 18px;
  border: 1px dashed rgba(239, 68, 68, 0.42);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  text-align: center;
}

.roi-is-unlocked .roi-lead-gate {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  filter: blur(8px);
  transform: translateX(-50%) translateY(-22px) scale(0.96);
}

.roi-is-locked .roi-lockable-result .roi-value-main,
.roi-is-locked #taxBenefitStatus,
.roi-is-locked #chartMin,
.roi-is-locked #chartMax,
.roi-is-locked .roi-table td:nth-child(2),
.roi-is-locked .roi-table td:nth-child(3),
.roi-is-locked .roi-chart {
  filter: blur(5px);
  user-select: none;
}

.roi-is-locked .roi-lockable-result .roi-value-main,
.roi-is-locked .roi-table td:nth-child(2),
.roi-is-locked .roi-table td:nth-child(3) {
  color: #94a3b8;
}

.roi-is-locked .roi-lockable-result {
  position: relative;
}

.roi-is-locked .roi-lockable-result::after,
.roi-is-unlocking .roi-lockable-result::after {
  content: "";
  position: absolute;
  z-index: 2;
  inset: 0;
  border-radius: inherit;
  background: rgba(248, 250, 252, 0.42);
  backdrop-filter: blur(3px);
  pointer-events: none;
  opacity: 1;
}

.roi-is-locked .roi-banner .roi-lockable-result::after {
  background: rgba(15, 23, 42, 0.22);
}

.roi-is-unlocking .roi-lockable-result::after,
.roi-is-unlocked .roi-lockable-result::after {
  opacity: 0;
  backdrop-filter: blur(0);
}

.roi-is-unlocked .roi-lockable-result::after {
  content: none;
}

.roi-metric-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.roi-metric-value {
  color: var(--roi-text);
}

.roi-success {
  color: var(--roi-success);
}

.roi-bottom-grid {
  grid-template-columns: minmax(0, 1fr);
}

.roi-chart-card,
.roi-table-card {
  display: grid;
  gap: 18px;
}

.roi-chart-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: start;
}

.roi-chart-badge {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(239, 68, 68, 0.08);
  color: var(--roi-accent-deep);
  font-size: 12px;
  font-weight: 700;
}

.roi-chart-shell {
  padding: 18px;
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  border: 1px solid var(--roi-border);
}

.roi-chart-meta {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--roi-subtle);
  font-size: 12px;
  margin-bottom: 10px;
}

.roi-chart {
  width: 100%;
  height: auto;
  display: block;
}

.roi-table-wrap {
  overflow: auto;
  border: 1px solid var(--roi-border);
  border-radius: 8px;
}

.roi-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 0;
  background: #ffffff;
  table-layout: fixed;
}

.roi-table thead {
  background: #f8fbff;
}

.roi-table th,
.roi-table td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid #e2e8f0;
  font-size: 14px;
  vertical-align: top;
}

.roi-table th:nth-child(1),
.roi-table td:nth-child(1) {
  width: 80px;
}

.roi-table th:nth-child(2),
.roi-table th:nth-child(3),
.roi-table td:nth-child(2),
.roi-table td:nth-child(3) {
  text-align: right;
}

.roi-table td:nth-child(2),
.roi-table td:nth-child(3) {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.roi-table tbody tr:last-child td {
  border-bottom: 0;
}

.roi-table td:last-child {
  font-weight: 700;
}

.roi-seo-copy {
  display: grid;
  gap: 22px;
  margin-top: 28px;
  padding: 26px;
  border: 1px solid rgba(214, 222, 233, 0.86);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--roi-shadow);
}

.roi-seo-kicker {
  margin: 0 0 8px;
  color: var(--roi-accent-deep);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
  text-transform: uppercase;
}

.roi-seo-copy h2,
.roi-seo-copy h3,
.roi-seo-copy p {
  margin: 0;
}

.roi-seo-copy h2 {
  max-width: 860px;
  color: var(--roi-text);
  font-size: 28px;
  line-height: 1.18;
}

.roi-seo-copy p {
  max-width: 960px;
  color: var(--roi-subtle);
  font-size: 15px;
  line-height: 1.65;
}

.roi-seo-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.roi-seo-grid article {
  display: grid;
  gap: 8px;
  padding-top: 14px;
  border-top: 1px solid rgba(226, 232, 240, 0.92);
}

.roi-seo-grid h3 {
  color: var(--roi-text);
  font-size: 16px;
  line-height: 1.25;
}

.roi-seo-grid p {
  font-size: 13px;
  line-height: 1.55;
}

@media (max-width: 1080px) {
  .roi-layout {
    grid-template-columns: 1fr;
  }

  .roi-bottom-grid,
  .roi-metric-grid,
  .roi-highlight-grid {
    grid-template-columns: 1fr 1fr;
  }

  .roi-panel {
    position: static;
  }
}

@media (max-width: 720px) {
  .roi-app {
    width: min(var(--roi-max-width), calc(100% - 20px));
    padding-top: 20px;
  }

  .roi-bottom-grid,
  .roi-metric-grid,
  .roi-highlight-grid {
    grid-template-columns: 1fr;
  }

  .roi-seo-grid {
    grid-template-columns: 1fr;
  }

  .roi-panel,
  .roi-banner,
  .roi-card,
  .roi-highlight-card {
    padding: 20px;
  }

  .roi-header h1 {
    font-size: 36px;
  }

  .roi-seo-copy {
    padding: 20px;
  }

  .roi-seo-copy h2 {
    font-size: 22px;
  }

  .roi-actions {
    flex-direction: column;
  }

  .roi-banner-head {
    grid-template-columns: 1fr;
    margin-bottom: 16px;
  }

  .roi-banner-chip {
    max-width: 100%;
  }

  .roi-lead-gate {
    top: 360px;
    width: min(440px, calc(100% - 24px));
  }

  .roi-wpforms-slot {
    padding: 18px;
  }

  .roi-wpforms-slot .ROIFormTitle {
    font-size: 20px;
  }

  .roi-wpforms-slot .wpforms-layout-row {
    grid-template-columns: 1fr;
  }

  .roi-wpforms-slot .wpforms-submit-container {
    margin: 12px -18px -18px !important;
    padding: 14px 18px 18px !important;
  }

  .roi-is-unlocked .roi-lead-gate {
    transform: translateX(-50%) translateY(-22px) scale(0.96);
  }

  .roi-highlight-card {
    min-height: auto;
  }

  .roi-highlight-value .roi-value-main,
  .roi-metric-value .roi-value-main,
  .roi-value-main {
    font-size: 34px;
  }

  .roi-table th,
  .roi-table td {
    padding: 12px;
    font-size: 13px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .roi-lead-gate,
  .roi-lockable-result {
    transition-duration: 1ms;
  }
}
