/* Versio.io ROI calculator (en/roi-calculator.html, logic in roi-calculator.js).
   Colours and fonts follow web.css: #003964 (brand blue), #007bff (accent), Montserrat for
   headings, Open Sans (inherited) for text. Everything is scoped to .roi so nothing leaks. */

.roi {
  --roi-blue: #003964;
  --roi-accent: #007bff;
  --roi-ink: #1d2733;
  --roi-muted: #5f6b7a;
  --roi-line: #e3e8ee;
  --roi-surface: #ffffff;
  --roi-surface-soft: #f4f7fb;
  --roi-track: #dbe7f5;
  --roi-warm: #eb6834;
  --roi-radius: 10px;
  --roi-shadow: 0 10px 29px 0 rgba(68, 88, 144, 0.1);
  color: var(--roi-ink);
  font-size: 1rem;
  line-height: 1.5;
}

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

.roi h3,
.roi h4 {
  font-family: "Montserrat", sans-serif;
  color: var(--roi-blue);
}

.roi p {
  margin: 0;
}

.roi ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

/* ---------------------------------------------------------------- Presets */

.roi-presets {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 0 0 24px 0;
}

.roi-presets-label {
  color: var(--roi-muted);
  margin-right: 6px;
}

.roi-preset {
  font-family: "Montserrat", sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 999px;
  border: 2px solid var(--roi-line);
  background: var(--roi-surface);
  color: var(--roi-blue);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
}

.roi-preset:hover,
.roi-preset:focus-visible {
  border-color: var(--roi-accent);
  outline: none;
}

.roi-preset.is-active {
  background: var(--roi-blue);
  border-color: var(--roi-blue);
  color: #fff;
}

/* ---------------------------------------------------------------- Layout */

/* Left: inputs, the saving breakdown and the investment, right: all other results. The results span
   the three left rows; the last of them takes up the extra height, so the left cards stay stacked
   directly under each other. On narrow screens breakdown and investment follow the results. */
.roi-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  grid-template-rows: auto auto 1fr;
  grid-template-areas:
    "inputs results"
    "breakdown results"
    "investment results"
    "share share";
  gap: 28px;
  align-items: start;
}

.roi-inputs {
  grid-area: inputs;
}

.roi-results {
  grid-area: results;
}

.roi-breakdown {
  grid-area: breakdown;
}

.roi-investment {
  grid-area: investment;
}

.roi-share {
  grid-area: share;
}

@media (max-width: 991px) {
  .roi-grid {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto;
    grid-template-areas:
      "inputs"
      "results"
      "breakdown"
      "investment"
      "share";
  }
}

.roi-card {
  background: var(--roi-surface);
  border: 1px solid var(--roi-line);
  border-radius: var(--roi-radius);
  box-shadow: var(--roi-shadow);
  padding: 28px;
}

@media (max-width: 575px) {
  .roi-card {
    padding: 20px;
  }
}

.roi .roi-card-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 0 6px 0;
}

.roi-card-intro {
  color: var(--roi-muted);
  font-size: 0.9375rem;
  margin-bottom: 22px;
}

.roi-results {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

/* ---------------------------------------------------------------- Inputs */

.roi-field {
  margin-bottom: 22px;
}

.roi-field-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 4px;
}

.roi-field-head label {
  font-weight: 600;
  font-size: 0.9375rem;
  margin: 0;
}

.roi-field-value {
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--roi-blue);
  min-width: 3ch;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.roi-hint {
  color: var(--roi-muted);
  font-size: 0.8125rem;
  line-height: 1.4;
  margin-top: 4px;
}

/* Range slider: native control, accent colour + a slim custom track for consistency */
.roi input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 28px;
  margin: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
  accent-color: var(--roi-accent);
}

.roi input[type="range"]:focus {
  outline: none;
}

.roi input[type="range"]::-webkit-slider-runnable-track {
  height: 6px;
  border-radius: 3px;
  background: var(--roi-track);
}

.roi input[type="range"]::-moz-range-track {
  height: 6px;
  border-radius: 3px;
  background: var(--roi-track);
}

.roi input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  margin-top: -8px;
  border-radius: 50%;
  background: var(--roi-accent);
  border: 3px solid #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

.roi input[type="range"]::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--roi-accent);
  border: 3px solid #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

.roi input[type="range"]:focus-visible::-webkit-slider-thumb {
  box-shadow: 0 0 0 4px rgba(0, 123, 255, 0.3);
}

.roi input[type="range"]:focus-visible::-moz-range-thumb {
  box-shadow: 0 0 0 4px rgba(0, 123, 255, 0.3);
}

/* ---------------------------------------------------------------- Assumptions */

.roi-assumptions {
  border-top: 1px solid var(--roi-line);
  padding-top: 16px;
  margin-top: 6px;
}

.roi-assumptions summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--roi-accent);
  list-style: none;
  display: flex;
  align-items: center;
  gap: 8px;
}

.roi-assumptions summary::-webkit-details-marker {
  display: none;
}

.roi-assumptions summary::before {
  content: "";
  width: 8px;
  height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(-45deg);
  transition: transform 0.2s;
  flex: none;
}

.roi-assumptions[open] summary::before {
  transform: rotate(45deg);
}

.roi .roi-assumptions-title {
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--roi-muted);
  margin: 22px 0 8px 0;
}

.roi-assumption {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 7px 0;
  border-bottom: 1px solid var(--roi-line);
}

.roi-assumption label {
  font-size: 0.875rem;
  line-height: 1.35;
  margin: 0;
  flex: 1 1 auto;
}

.roi-assumption-input {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex: none;
}

.roi-unit {
  font-size: 0.8125rem;
  color: var(--roi-muted);
  white-space: nowrap;
}

.roi input[type="number"] {
  width: 112px;
  padding: 6px 8px;
  font: inherit;
  font-size: 0.9375rem;
  text-align: right;
  border: 1px solid #c9d3df;
  border-radius: 6px;
  background: #fff;
  color: var(--roi-ink);
  font-variant-numeric: tabular-nums;
}

.roi input[type="number"]:focus {
  outline: none;
  border-color: var(--roi-accent);
  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.2);
}

.roi-assumptions-footer {
  margin-top: 18px;
  text-align: right;
}

.roi-reset {
  font: inherit;
  font-size: 0.875rem;
  color: var(--roi-accent);
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  text-decoration: underline;
}

/* ---------------------------------------------------------------- Hero / KPIs */

.roi-hero {
  background: linear-gradient(135deg, #003964 0%, #0a5aa8 100%);
  color: #fff;
  border-radius: var(--roi-radius);
  box-shadow: var(--roi-shadow);
  padding: 28px;
}

@media (max-width: 575px) {
  .roi-hero {
    padding: 20px;
  }
}

/* Main figure on the left, net saving in the first year on the right; stacked on narrow screens */
.roi-hero-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px 24px;
  padding-bottom: 20px;
  margin-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.25);
}

@media (min-width: 576px) {
  .roi-hero-top {
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  }
}

.roi-hero-main {
  display: flex;
  flex-direction: column;
}

.roi-kpi-label {
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  opacity: 0.85;
}

/* Singular or plural after the ramp-up duration (class roi-ramp-one set by roi-calculator.js) */
.roi-month,
.roi-ramp-one .roi-months {
  display: none;
}

.roi-ramp-one .roi-month {
  display: inline;
}

/* Second line of a label that breaks at a fixed word */
.roi-kpi-line {
  display: block;
}

.roi-kpi-value {
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  font-size: 1.5rem;
  line-height: 1.15;
  margin: 4px 0 2px 0;
}

.roi-kpi-value-big {
  font-size: 3rem;
}

@media (max-width: 575px) {
  .roi-kpi-value-big {
    font-size: 2.25rem;
  }
}

.roi-kpi-unit {
  font-size: 1rem;
  font-weight: 600;
  opacity: 0.85;
}

.roi-kpi-sub {
  font-size: 0.8125rem;
  opacity: 0.85;
}

.roi-kpis {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 24px;
}

@media (min-width: 576px) {
  .roi-kpis {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.roi-kpi {
  display: flex;
  flex-direction: column;
}

/* ---------------------------------------------------------------- Breakdown bars */

.roi-bar {
  padding: 14px 0;
  border-bottom: 1px solid var(--roi-line);
}

.roi-bar:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.roi-bar-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 6px;
}

.roi-bar-label {
  font-weight: 600;
  font-size: 0.9375rem;
}

.roi-bar-value {
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  color: var(--roi-blue);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

/* Waterfall: the part up to --roi-offset (set by JS) stands for the savings of the rows above */
.roi-bar-track {
  --roi-offset: 0%;
  height: 10px;
  border-radius: 5px;
  background: linear-gradient(to right, #a9c9ee var(--roi-offset), var(--roi-track) var(--roi-offset));
  overflow: hidden;
}

.roi-bar-fill {
  height: 100%;
  width: 0;
  margin-left: var(--roi-offset);
  border-radius: 5px;
  background: var(--roi-accent);
  transition: width 0.35s ease-out, margin-left 0.35s ease-out;
}

.roi-bar-total {
  padding-top: 8px;
  border-bottom: 2px solid var(--roi-blue);
}

.roi-bar-total .roi-bar-label {
  font-weight: 700;
  color: var(--roi-blue);
}

.roi-bar-total .roi-bar-fill {
  background: var(--roi-blue);
}

.roi-bar-note {
  color: var(--roi-muted);
  font-size: 0.8125rem;
  line-height: 1.4;
  margin-top: 6px;
}

.roi-bar.is-zero .roi-bar-note {
  display: none;
}

.roi-bar.is-zero .roi-bar-value,
.roi-bar.is-zero .roi-bar-label {
  color: var(--roi-muted);
  font-weight: 500;
}

/* ---------------------------------------------------------------- Investment */

.roi-investment-list {
  margin: 0;
}

.roi-investment-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid var(--roi-line);
}

.roi-investment-row dt {
  font-weight: 500;
}

.roi-investment-row dd {
  margin: 0;
  font-weight: 600;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.roi-investment-total {
  border-bottom: 2px solid var(--roi-blue);
}

/* Two totals (first year, following years): only the second one closes with the strong line */
.roi-investment-total:has(+ .roi-investment-total) {
  border-bottom: 1px solid var(--roi-line);
}

.roi-investment-row:last-child {
  border-bottom: none;
}

.roi-investment-total dt,
.roi-investment-total dd {
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  color: var(--roi-blue);
}

.roi-investment-note {
  color: var(--roi-muted);
  font-size: 0.8125rem;
  margin-top: 12px;
}

.roi-investment-note a {
  color: var(--roi-accent);
}

/* ---------------------------------------------------------------- CTA */

.roi-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 0;
}

.roi-cta .btn-link {
  margin-bottom: 0;
}

.roi .roi-btn-secondary {
  background: #fff;
  color: var(--roi-blue);
}

.roi .roi-btn-secondary:hover {
  background: var(--roi-blue);
  color: #fff;
}

/* ---------------------------------------------------------------- Qualitative */

.roi .roi-section-title {
  font-size: 1.5rem;
  font-weight: 700;
  text-align: center;
  margin: 48px 0 12px 0;
}

.roi .roi-section-intro {
  max-width: 760px;
  margin: 0 auto 24px auto;
  text-align: center;
  color: var(--roi-muted);
}

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

@media (max-width: 991px) {
  .roi-qualitative {
    grid-template-columns: minmax(0, 1fr);
  }
}

.roi .roi-quality-title {
  font-size: 1.0625rem;
  font-weight: 700;
  margin: 0 0 12px 0;
}

.roi-quality li {
  position: relative;
  padding-left: 32px;
  margin-bottom: 12px;
  font-size: 0.9375rem;
  line-height: 1.45;
}

/* One line icon per point, drawn in the accent colour through a mask: the icon is set as --roi-ico by a
   class on the <li> (an inline SVG in the HTML fragment would have its attributes sent to DeepL) */
.roi-quality li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1px;
  width: 20px;
  height: 20px;
  background-color: var(--roi-accent);
  -webkit-mask: var(--roi-ico) no-repeat center / contain;
  mask: var(--roi-ico) no-repeat center / contain;
}

/* Hosting in your own data centre or a European cloud */
.roi-ico-server {
  --roi-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='7' rx='2'/%3E%3Crect x='3' y='13' width='18' height='7' rx='2'/%3E%3Cpath d='M7 7.5h.01M7 16.5h.01'/%3E%3C/svg%3E");
}

/* No vendor dependency */
.roi-ico-unlock {
  --roi-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='11' width='16' height='10' rx='2'/%3E%3Cpath d='M8 11V7a4 4 0 0 1 7.5-2'/%3E%3C/svg%3E");
}

/* Open API */
.roi-ico-code {
  --roi-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 7l-5 5 5 5M16 7l5 5-5 5M14 4l-4 16'/%3E%3C/svg%3E");
}

/* Compliance evidence */
.roi-ico-shield-check {
  --roi-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3l8 3v6c0 5-3.5 8-8 9-4.5-1-8-4-8-9V6z'/%3E%3Cpath d='M8.5 12l2.5 2.5 4.5-5'/%3E%3C/svg%3E");
}

/* Digital twin */
.roi-ico-layers {
  --roi-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3l9 5-9 5-9-5z'/%3E%3Cpath d='M3 12.5l9 5 9-5'/%3E%3Cpath d='M3 17l9 5 9-5'/%3E%3C/svg%3E");
}

/* AI assistant */
.roi-ico-sparkles {
  --roi-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M11 3l1.8 5.2L18 10l-5.2 1.8L11 17l-1.8-5.2L4 10l5.2-1.8z'/%3E%3Cpath d='M19 14l.8 2.2L22 17l-2.2.8L19 20l-.8-2.2L16 17l2.2-.8z'/%3E%3C/svg%3E");
}

/* Knowledge stays in the platform */
.roi-ico-bulb {
  --roi-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 18h6M10 21h4'/%3E%3Cpath d='M12 3a6 6 0 0 0-3.5 10.9c.6.5 1 1.2 1 2.1h5c0-.9.4-1.6 1-2.1A6 6 0 0 0 12 3z'/%3E%3C/svg%3E");
}

/* Faster projects */
.roi-ico-forward {
  --roi-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 6l8 6-8 6z'/%3E%3Cpath d='M13 6l8 6-8 6z'/%3E%3C/svg%3E");
}

/* Change detection 24/7 */
.roi-ico-pulse {
  --roi-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 12h4l3-8 4 16 3-8h4'/%3E%3C/svg%3E");
}

/* Vulnerabilities */
.roi-ico-shield-alert {
  --roi-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3l8 3v6c0 5-3.5 8-8 9-4.5-1-8-4-8-9V6z'/%3E%3Cpath d='M12 8v5M12 16.5h.01'/%3E%3C/svg%3E");
}

/* Shadow IT made visible */
.roi-ico-eye {
  --roi-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 12s3.5-7 10-7 10 7 10 7-3.5 7-10 7S2 12 2 12z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E");
}

/* Lower licence and infrastructure costs */
.roi-ico-trend-down {
  --roi-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 7l6 6 4-4 8 8'/%3E%3Cpath d='M15 17h6v-6'/%3E%3C/svg%3E");
}

.roi-disclaimer {
  color: var(--roi-muted);
  font-size: 0.8125rem;
  line-height: 1.5;
  margin-top: 28px;
}

/* ---------------------------------------------------------------- Formula lines ("How is this calculated?") */

.roi-formula {
  margin-top: 8px;
}

.roi-formula summary {
  cursor: pointer;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--roi-accent);
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.roi-formula summary::-webkit-details-marker {
  display: none;
}

.roi-formula summary::before {
  content: "";
  width: 6px;
  height: 6px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(-45deg);
  transition: transform 0.2s;
  flex: none;
}

.roi-formula[open] summary::before {
  transform: rotate(45deg);
}

.roi-formula-line {
  margin: 8px 0 0 0;
  padding: 10px 14px;
  border-radius: 6px;
  background: var(--roi-surface-soft);
  font-size: 0.8125rem;
  line-height: 1.6;
  color: var(--roi-ink);
  font-variant-numeric: tabular-nums;
}

.roi-formula-line + .roi-formula-line {
  margin-top: 6px;
}

.roi-formula-line .roi-f {
  font-weight: 600;
  color: var(--roi-blue);
  white-space: nowrap;
}

.roi-formula-line strong.roi-f {
  font-weight: 700;
}

.roi-bar.is-zero .roi-formula {
  display: none;
}

/* Management summary under "Your investment": label left, statement right; stacked on narrow screens */
.roi-summary-list {
  margin: 12px 0 0 0;
}

.roi-summary-row {
  display: grid;
  grid-template-columns: 9.5rem minmax(0, 1fr);
  gap: 4px 16px;
  padding: 10px 0;
  border-bottom: 1px solid var(--roi-line);
}

.roi-summary-row:last-child {
  border-bottom: none;
}

@media (max-width: 575px) {
  .roi-summary-row {
    grid-template-columns: minmax(0, 1fr);
  }
}

.roi-summary-row dt {
  font-weight: 700;
  color: var(--roi-blue);
}

.roi-summary-row dd {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.5;
}

.roi-summary-row b {
  font-weight: 700;
  color: var(--roi-blue);
  white-space: nowrap;
}

/* One lever per line, long names may wrap */
.roi-summary-row b.roi-summary-lever {
  display: block;
  white-space: normal;
}

.roi-summary-no,
.roi-no-breakeven .roi-summary-yes {
  display: none;
}

.roi-no-breakeven .roi-summary-no {
  display: inline;
}

.roi-summary-copy {
  font: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  margin-top: 14px;
  padding: 8px 16px;
  color: var(--roi-blue);
  background: #fff;
  border: 1px solid var(--roi-blue);
  border-radius: 4px;
  cursor: pointer;
}

.roi-summary-copy:hover {
  background: var(--roi-blue);
  color: #fff;
}

.roi-copy-done,
.roi-summary-copy.is-done .roi-copy-idle {
  display: none;
}

.roi-summary-copy.is-done .roi-copy-done {
  display: inline;
}

.roi-investment .roi-formula {
  margin-top: 12px;
}

/* Formula lines inside the dark result box */
.roi-hero-formula {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.25);
}

.roi-hero-formula summary {
  color: #fff;
}

.roi-hero-formula .roi-formula-line {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.roi-hero-formula .roi-formula-line .roi-f {
  color: #fff;
}

.roi-hero-formula .roi-formula-line b {
  font-weight: 700;
}

/* ---------------------------------------------------------------- Break-even chart */

.roi-chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-bottom: 10px;
  font-size: 0.8125rem;
  color: var(--roi-muted);
}

.roi-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.roi-legend-swatch {
  width: 18px;
  height: 0;
  border-top: 2px solid var(--roi-accent);
  flex: none;
}

/* Payback period: a tinted square like the band in the chart */
.roi-legend-payback {
  width: 12px;
  height: 12px;
  border-top: 0;
  border-radius: 2px;
  background: rgba(235, 104, 52, 0.2);
}

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

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

.roi-chart-grid {
  stroke: var(--roi-line);
  stroke-width: 1;
}

.roi-chart-zero {
  stroke: var(--roi-muted);
  stroke-width: 1;
}

.roi-chart-payback {
  fill: var(--roi-warm);
  fill-opacity: 0.1;
}

.roi-chart-tick {
  font-family: "Open Sans", sans-serif;
  font-size: 11px;
  fill: var(--roi-muted);
  font-variant-numeric: tabular-nums;
}

.roi-chart-tick-y {
  text-anchor: end;
}

.roi-chart-tick-x {
  text-anchor: middle;
}

.roi-chart-line {
  fill: none;
  stroke-width: 2.5;
  stroke-linejoin: round;
  stroke-linecap: round;
}

.roi-chart-line-gain {
  stroke: var(--roi-accent);
}

.roi-chart-line-loss {
  stroke: var(--roi-warm);
}

.roi-chart-area-gain {
  fill: var(--roi-accent);
  fill-opacity: 0.1;
}

.roi-chart-area-loss {
  fill: var(--roi-warm);
  fill-opacity: 0.2;
}

.roi-chart-breakeven {
  stroke: var(--roi-ink);
  stroke-width: 1;
}

/* End of the ramp-up: dashed vertical line up to its label above the plot */
.roi-chart-ramp-line {
  stroke: var(--roi-muted);
  stroke-width: 1.5;
  stroke-dasharray: 6 4;
}

.roi-chart-ramp .roi-flag-value b {
  color: var(--roi-ink);
}

.roi-legend-ramp {
  border-top: 2px dashed var(--roi-muted);
}

.roi-chart-breakeven-dot {
  fill: var(--roi-blue);
  stroke: #fff;
  stroke-width: 2;
}

/* Year-end points and their values (text in ink with a white halo, never in the series colour) */
.roi-chart-point {
  fill: var(--roi-accent);
  stroke: #fff;
  stroke-width: 2;
}

.roi-chart-point.is-loss {
  fill: var(--roi-warm);
}

.roi-chart-value {
  font-family: "Open Sans", sans-serif;
  font-size: 12px;
  font-weight: 600;
  fill: var(--roi-ink);
  text-anchor: end;
  paint-order: stroke;
  stroke: #fff;
  stroke-width: 3px;
  stroke-linejoin: round;
}

/* Labels of break-even and ramp-up: one line in a lane above the plot, placed by roi-calculator.js */
.roi-chart-flag {
  position: absolute;
  top: 0;
  left: 0;
  display: none;
  flex-direction: row;
  align-items: baseline;
  gap: 6px;
  line-height: 1.25;
  white-space: nowrap;
  pointer-events: none;
}

.roi-chart-flag.is-visible {
  display: flex;
}

.roi-flag-label {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--roi-muted);
}

.roi-flag-value {
  font-size: 0.8125rem;
  color: var(--roi-ink);
}

.roi-flag-value b {
  font-family: "Montserrat", sans-serif;
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--roi-blue);
}

.roi-chart-cursor {
  stroke: var(--roi-muted);
  stroke-width: 1;
  opacity: 0;
}

.roi-chart-cursor-dot {
  fill: var(--roi-accent);
  stroke: #fff;
  stroke-width: 2;
  opacity: 0;
}

.roi-chart-cursor-dot.is-loss {
  fill: var(--roi-warm);
}

.roi-chart.is-hover .roi-chart-cursor,
.roi-chart.is-hover .roi-chart-cursor-dot {
  opacity: 1;
}

.roi-chart-hit {
  fill: transparent;
  cursor: crosshair;
}

.roi-chart-tip {
  position: absolute;
  top: 0;
  left: 0;
  display: none;
  flex-direction: column;
  gap: 2px;
  padding: 8px 12px;
  border-radius: 6px;
  background: var(--roi-ink);
  color: #fff;
  font-size: 0.75rem;
  line-height: 1.4;
  pointer-events: none;
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
  font-variant-numeric: tabular-nums;
}

.roi-chart-tip.is-visible {
  display: flex;
}

.roi-tip-label {
  opacity: 0.75;
  display: inline-block;
  min-width: 78px;
}

.roi-chart-axis {
  text-align: center;
  font-size: 0.75rem;
  color: var(--roi-muted);
  margin-top: 2px;
}

.roi-chart-caption {
  margin-top: 14px;
  font-size: 0.9375rem;
}

.roi-chart-caption strong {
  color: var(--roi-blue);
}

.roi-breakeven-no,
.roi-breakeven-late,
.roi-no-breakeven .roi-breakeven-yes,
.roi-late-breakeven .roi-breakeven-yes {
  display: none;
}

.roi-late-breakeven .roi-breakeven-late {
  display: block;
}

.roi-no-breakeven .roi-breakeven-no {
  display: block;
  color: var(--roi-muted);
}

/* ---------------------------------------------------------------- E-mail form (full width) */

/* Text on the left, form on the right; e-mail field and button side by side */
.roi-share {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: 16px 48px;
  align-items: start;
}

.roi-share .roi-form-row:last-child {
  margin-bottom: 0;
}

/* Label only for screen readers: the placeholder already shows what to enter */
.roi .roi-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.roi .roi-share .roi-card-intro {
  margin-bottom: 0;
}

.roi-form-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: stretch;
}

.roi-form-inline input[type="email"] {
  flex: 1 1 260px;
  min-width: 0;
  margin: 0;
}

.roi .roi-form-inline .btn-link {
  flex: none;
  margin: 0;
}

/* Shown disabled until the privacy checkbox is ticked and a valid business e-mail address is entered
   (roi-calculator.js). A class, not :disabled, so the button stays reachable with Tab. */
.roi .roi-form-inline .btn-link.is-disabled,
.roi .roi-form-inline .btn-link.is-disabled:hover {
  opacity: 0.45;
  cursor: not-allowed;
  background: #003964;
  color: #fff;
}

.roi .roi-form-error {
  margin-top: 6px;
  font-size: 0.8125rem;
  color: #c0392b;
}

.roi .roi-form-error:empty {
  display: none;
}

@media (max-width: 767px) {
  .roi-share {
    grid-template-columns: minmax(0, 1fr);
  }
}

.roi-form-row {
  margin-bottom: 12px;
}

/* Text inputs, checkboxes and the submit button use the site-wide form styling from web.css */
.roi-form-row label {
  font-size: 0.875rem;
  font-weight: 600;
  margin: 0 0 4px 0;
}

.roi-form-check label {
  font-weight: 400;
  line-height: 1.45;
}

/* web.css draws the checkbox with label::before and hides the real one with visibility: hidden, which
   takes it out of the Tab order. Here it stays invisible but focusable, laid over the drawn box. */
.roi-form-check {
  position: relative;
}

.roi .roi-form-check input[type="checkbox"] {
  visibility: visible;
  opacity: 0;
  position: absolute;
  left: 0;
  top: 4px;
  width: 17px;
  height: 17px;
  margin: 0;
  cursor: pointer;
}

.roi .roi-form-check input[type="checkbox"]:focus-visible + label::before {
  outline: 2px solid #0056b3;
  outline-offset: 2px;
}

.roi-form-hidden {
  display: none;
}

