/* Interactive tools: Data Maturity Assessment and Fabric cost & ROI calculator */
:root {
  --dl-purple: #a349a4;
  --dl-purple-dark: #7d3480;
  --dl-purple-soft: #f6eef6;
  --dl-ink: #303d4e;
  --dl-muted: #5f6b7a;
  --dl-line: #e3e6ea;
  --dl-good: #2e8b57;
}

.tool-section {
  padding: 60px 0;
  background: #fafbfc;
}

.tool-section .section-header p {
  margin-bottom: 8px;
}

.tool-lead {
  max-width: 760px;
  margin: 0 auto 32px;
  text-align: center;
  color: var(--dl-muted);
  font-size: var(--fs-lead);
}

.tool-card {
  background: #fff;
  border: 1px solid var(--dl-line);
  border-radius: 14px;
  padding: 28px;
  box-shadow: 0 6px 24px rgba(48, 61, 78, 0.06);
  height: 100%;
}

.tool-card h3 {
  font-family: "Montserrat", sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--dl-ink);
  margin-bottom: 18px;
}

.tool-muted {
  color: var(--dl-muted);
  font-size: 14px;
}

.tool-btn {
  display: inline-block;
  border: 0;
  border-radius: 6px;
  padding: 12px 26px;
  background: var(--dl-purple);
  color: #fff;
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  text-decoration: none;
}

.tool-btn:hover,
.tool-btn:focus-visible {
  background: var(--dl-purple-dark);
  color: #fff;
}

.tool-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.tool-btn-outline {
  background: transparent;
  color: var(--dl-purple);
  border: 2px solid var(--dl-purple);
}

.tool-btn-outline:hover,
.tool-btn-outline:focus-visible {
  background: var(--dl-purple-soft);
  color: var(--dl-purple-dark);
}

.tool-section :focus-visible {
  outline: 3px solid var(--dl-purple);
  outline-offset: 2px;
}

/* ---------- Fabric calculator ---------- */
.calc-field {
  margin-bottom: 22px;
}

.calc-field label,
.calc-field legend {
  display: flex;
  justify-content: space-between;
  font-weight: 600;
  color: var(--dl-ink);
  font-size: var(--fs-body);
  margin-bottom: 6px;
  width: 100%;
}

.calc-field output {
  color: var(--dl-purple);
  font-weight: 700;
}

.calc-field input[type="range"] {
  width: 100%;
  accent-color: var(--dl-purple);
}

.calc-field fieldset {
  border: 0;
  padding: 0;
  margin: 0;
}

.calc-tools {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 8px;
}

.calc-field .calc-check {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 8px;
  width: auto;
  font-size: 14px;
  color: var(--dl-ink);
  font-weight: 400;
  margin: 0;
  cursor: pointer;
}

.calc-check input {
  accent-color: var(--dl-purple);
}

.calc-toggle {
  display: flex;
  border: 1px solid var(--dl-line);
  border-radius: 8px;
  overflow: hidden;
}

.calc-toggle label {
  flex: 1;
  margin: 0;
  justify-content: center;
  padding: 9px 6px;
  font-weight: 500;
  font-size: 14px;
  cursor: pointer;
}

.calc-toggle input {
  position: absolute;
  opacity: 0;
}

.calc-toggle input:checked + span {
  color: #fff;
}

.calc-toggle label:has(input:checked) {
  background: var(--dl-purple);
  color: #fff;
}

.calc-toggle label:has(input:focus-visible) {
  outline: 3px solid var(--dl-purple);
  outline-offset: -3px;
}

.calc-result-tier {
  font-family: "Baloo 2", sans-serif;
  font-size: 56px;
  font-weight: 800;
  line-height: 1;
  color: var(--dl-purple);
}

.calc-kpis {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin: 22px 0;
}

.calc-kpi {
  background: var(--dl-purple-soft);
  border-radius: 10px;
  padding: 14px;
}

.calc-kpi span {
  display: block;
  font-size: var(--fs-small);
  color: var(--dl-muted);
}

.calc-kpi strong {
  font-size: 20px;
  color: var(--dl-ink);
}

.calc-breakdown {
  width: 100%;
  font-size: 14px;
  margin-bottom: 16px;
}

.calc-breakdown td {
  padding: 10px 12px;
  border: 0;
  border-bottom: 1px solid var(--dl-line);
}

#calc-breakdown tr:last-child td {
  border-bottom: 0;
  background: var(--dl-purple-soft);
  font-weight: 700;
}

.calc-breakdown td:last-child {
  text-align: right;
  font-weight: 600;
}

.calc-note {
  font-size: var(--fs-small);
  color: var(--dl-muted);
  border-left: 3px solid var(--dl-purple);
  padding-left: 10px;
  margin: 12px 0;
}

.calc-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.calc-assumptions summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--dl-ink);
  margin-top: 18px;
}

.calc-assumptions ul {
  font-size: var(--fs-small);
  color: var(--dl-muted);
  padding-left: 18px;
  margin-top: 8px;
}

.calc-copied {
  font-size: var(--fs-small);
  color: var(--dl-good);
  align-self: center;
}

/* ---------- Maturity assessment ---------- */
.assess-progress {
  height: 8px;
  background: var(--dl-line);
  border-radius: 99px;
  overflow: hidden;
  margin-bottom: 8px;
}

.assess-progress div {
  height: 100%;
  background: var(--dl-purple);
  width: 0;
  transition: width 0.3s;
}

.assess-step-meta {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  color: var(--dl-muted);
  margin-bottom: 18px;
}

.assess-area {
  display: inline-block;
  background: var(--dl-purple-soft);
  color: var(--dl-purple-dark);
  font-weight: 600;
  font-size: var(--fs-small);
  border-radius: 99px;
  padding: 4px 12px;
  margin-bottom: 10px;
}

.assess-question {
  font-family: "Montserrat", sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--dl-ink);
  margin-bottom: 18px;
}

.assess-options {
  display: grid;
  gap: 10px;
  border: 0;
  padding: 0;
  margin: 0;
}

.assess-option {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  border: 2px solid var(--dl-line);
  border-radius: 10px;
  padding: 14px 16px;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
  margin: 0;
}

.assess-option:hover {
  border-color: var(--dl-purple);
}

.assess-option input {
  margin-top: 4px;
  accent-color: var(--dl-purple);
}

.assess-option:has(input:checked) {
  border-color: var(--dl-purple);
  background: var(--dl-purple-soft);
}

.assess-option strong {
  display: block;
  color: var(--dl-ink);
}

.assess-option span {
  color: var(--dl-muted);
  font-size: 14px;
}

.assess-nav {
  display: flex;
  justify-content: space-between;
  margin-top: 24px;
}

.assess-score {
  font-family: "Baloo 2", sans-serif;
  font-size: 64px;
  font-weight: 800;
  color: var(--dl-purple);
  line-height: 1;
}

.assess-level {
  font-size: 20px;
  font-weight: 700;
  color: var(--dl-ink);
}

.assess-radar svg {
  width: 100%;
  height: auto;
  max-width: 460px;
  display: block;
  margin: 0 auto;
}

.assess-legend {
  display: flex;
  justify-content: center;
  gap: 18px;
  font-size: 14px;
  color: var(--dl-muted);
  margin-top: 8px;
}

.assess-legend i {
  display: inline-block;
  width: 14px;
  height: 14px;
  border-radius: 3px;
  vertical-align: -2px;
  margin-right: 6px;
}

.assess-table {
  width: 100%;
  font-size: 14px;
}

.assess-table th,
.assess-table td {
  padding: 10px 12px;
  border: 0;
  border-bottom: 1px solid var(--dl-line);
}

.assess-table th {
  background: transparent;
  color: var(--dl-ink);
  font-weight: 700;
}

.assess-table td:not(:first-child),
.assess-table th:not(:first-child) {
  text-align: center;
}

.assess-gap-neg {
  color: #b23a48;
  font-weight: 600;
}

.assess-gap-pos {
  color: var(--dl-good);
  font-weight: 600;
}

.assess-fix {
  display: flex;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--dl-line);
}

.assess-fix:last-child {
  border-bottom: 0;
}

.assess-fix-num {
  flex: 0 0 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--dl-purple);
  color: #fff;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.assess-fix h4 {
  font-size: 17px;
  font-weight: 700;
  color: var(--dl-ink);
  margin-bottom: 4px;
}

.assess-fix p {
  margin-bottom: 6px;
  color: var(--dl-muted);
  font-size: var(--fs-body);
}

.assess-form .form-control {
  margin-bottom: 12px;
}

.assess-form label {
  font-size: 14px;
  font-weight: 600;
  color: var(--dl-ink);
}

.assess-consent {
  display: flex;
  gap: 8px;
  font-size: var(--fs-small);
  color: var(--dl-muted);
  margin: 6px 0 14px;
}

.assess-status {
  font-size: 14px;
  margin-top: 10px;
}

.assess-areas-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
  margin: 28px 0;
}

.assess-areas-list div {
  background: #fff;
  border: 1px solid var(--dl-line);
  border-radius: 10px;
  padding: 16px;
}

.assess-areas-list i {
  font-size: 26px;
  color: var(--dl-purple);
}

.assess-areas-list h3 {
  font-size: 17px;
  font-weight: 700;
  margin: 6px 0 4px;
  color: var(--dl-ink);
}

.assess-areas-list p {
  font-size: 14px;
  color: var(--dl-muted);
  margin: 0;
}

[hidden] {
  display: none !important;
}

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

  .calc-kpis {
    grid-template-columns: 1fr;
  }

  .calc-result-tier {
    font-size: 44px;
  }

  .assess-question {
    font-size: 19px;
  }

}

/* ---------- Fabric calculator: printable report ---------- */
.print-only {
  display: none;
}

@media print {
  /* Zero page margin stops the browser adding its own date, title, URL
     and page-number header/footer; the report pads itself instead. */
  @page {
    size: A4;
    margin: 0;
  }

  /* Show only the calculator */
  body.print-calculator > :not(#content),
  body.print-calculator #content > :not(main),
  body.print-calculator main > :not(#fabric-calculator),
  body.print-calculator #fabric-calculator .section-header,
  body.print-calculator #fabric-calculator .tool-lead,
  body.print-calculator #fabric-calculator form.tool-card,
  body.print-calculator #fabric-calculator .calc-actions,
  body.print-calculator #fabric-calculator .calc-screen-cta,
  body.print-calculator #fabric-calculator .calc-assumptions summary {
    display: none !important;
  }

  body.print-calculator {
    background: #fff;
    font-size: 11pt;
  }

  body.print-calculator #fabric-calculator {
    padding: 10mm 13mm 8mm;
    background: #fff;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  body.print-calculator #fabric-calculator .container {
    max-width: none;
    padding: 0;
  }

  body.print-calculator [data-aos] {
    opacity: 1 !important;
    transform: none !important;
  }

  body.print-calculator #fabric-calculator .row > [class*="col-"] {
    flex: 0 0 100%;
    max-width: 100%;
    width: 100%;
  }

  body.print-calculator #fabric-calculator .row > [class*="col-"]:first-child {
    display: none;
  }

  body.print-calculator .print-only {
    display: block;
  }

  /* Branded header */
  .calc-print-header {
    display: flex !important;
    justify-content: space-between;
    align-items: center;
    border-bottom: 3px solid var(--dl-purple);
    padding-bottom: 8px;
    margin-bottom: 10px;
  }

  .calc-print-brand {
    display: flex;
    align-items: center;
  }

  .calc-print-brand img {
    height: 36px;
    width: auto;
  }

  .calc-print-brand span {
    font-family: "Baloo 2", sans-serif;
    font-size: 20pt;
    font-weight: 700;
    color: var(--dl-ink);
    line-height: 1;
    margin-top: 8px;
  }

  .calc-print-meta {
    text-align: right;
  }

  .calc-print-meta strong {
    display: block;
    font-size: 13pt;
    color: var(--dl-ink);
  }

  .calc-print-meta span {
    font-size: 9.5pt;
    color: var(--dl-muted);
  }

  /* Inputs and estimate */
  .calc-print-inputs h3,
  body.print-calculator #fabric-calculator .tool-card h3 {
    font-size: 11pt;
    font-weight: 700;
    color: var(--dl-purple-dark);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin: 0 0 4px;
  }

  .calc-print-inputs {
    margin-bottom: 8px;
  }

  body.print-calculator .calc-breakdown {
    margin-bottom: 4px;
    font-size: 9.5pt;
  }

  body.print-calculator .calc-breakdown td {
    padding: 4px 8px;
  }

  .calc-print-inputs .calc-breakdown td:first-child {
    white-space: nowrap;
    width: 30%;
    color: var(--dl-muted);
  }

  .calc-print-inputs .calc-breakdown td:last-child {
    font-weight: 500;
    text-align: left;
  }

  body.print-calculator #fabric-calculator .tool-card {
    border: 0;
    box-shadow: none;
    padding: 0;
  }

  body.print-calculator #fabric-calculator .tool-card > div.tool-muted:first-of-type {
    display: none;
  }

  body.print-calculator .calc-result-tier {
    font-size: 24pt;
    display: inline-block;
    margin-right: 10px;
  }

  body.print-calculator #calc-tier-why {
    display: block;
    font-size: 9pt;
    margin: 2px 0 0 !important;
  }

  body.print-calculator .calc-result-tier::before {
    content: "Recommended capacity: ";
    font-family: "Montserrat", sans-serif;
    font-size: 10pt;
    font-weight: 600;
    color: var(--dl-ink);
    vertical-align: middle;
  }

  body.print-calculator .calc-kpis {
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
    margin: 6px 0;
    break-inside: avoid;
  }

  body.print-calculator .calc-kpi {
    padding: 6px 8px;
  }

  body.print-calculator .calc-kpi span {
    font-size: 8pt;
  }

  body.print-calculator .calc-kpi strong {
    font-size: 10.5pt;
    white-space: nowrap;
  }

  body.print-calculator .calc-note,
  body.print-calculator #calc-licence-note {
    font-size: 8.5pt;
    margin: 4px 0;
  }

  body.print-calculator .calc-breakdown,
  body.print-calculator .calc-assumptions {
    break-inside: avoid;
  }

  body.print-calculator .calc-assumptions ul {
    font-size: 8pt;
    line-height: 1.4;
    margin: 2px 0 0;
  }

  body.print-calculator .calc-assumptions::before {
    content: "How we calculate this";
    display: block;
    font-size: 9pt;
    font-weight: 700;
    color: var(--dl-ink);
    margin-top: 4px;
  }

  /* Contact footer */
  .calc-print-footer {
    position: relative;
    z-index: 1;
    margin-top: 8px;
    font-size: 8.5pt;
    color: var(--dl-ink);
  }

  .calc-print-footer::before {
    content: "";
    display: block;
    height: 3px;
    background: var(--dl-purple);
    margin-bottom: 6px;
  }

  .calc-print-contact {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 4px;
    background: var(--dl-purple-soft);
    border-radius: 6px;
    padding: 6px 8px;
    margin: 6px 0;
  }

  .calc-print-disclaimer {
    font-size: 7pt;
    color: var(--dl-muted);
  }

  body.print-calculator a[href]::after {
    content: none !important;
  }
}

/* ---------- Engagement components (home and service pages) ---------- */
.hero-lead {
  font-size: var(--fs-lead);
  line-height: 1.6;
  color: var(--dl-ink);
  margin: 18px 0 8px;
  max-width: 560px;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

@media (max-width: 991px) {
  .hero-lead {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-ctas {
    justify-content: center;
  }
}

.proof-strip {
  background: var(--dl-ink);
  color: #fff;
  padding: 28px 0;
}

.proof-strip .proof-item {
  text-align: center;
}

.proof-strip strong {
  display: block;
  font-family: "Baloo 2", sans-serif;
  font-size: 34px;
  line-height: 1.1;
  color: #fff;
}

.proof-strip span {
  font-size: 14px;
  color: #d6dbe1;
}

.fit-section {
  padding: 60px 0 30px;
}

.fit-card {
  border-radius: 14px;
  padding: 28px;
  height: 100%;
}

.fit-card h2 {
  font-family: "Montserrat", sans-serif;
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 18px;
  color: var(--dl-ink);
}

.fit-card.pains {
  background: #fff6f6;
  border: 1px solid #f4d9dc;
}

.fit-card.gets {
  background: var(--dl-purple-soft);
  border: 1px solid #ead6ea;
}

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

.fit-list li {
  display: flex;
  gap: 12px;
  padding: 9px 0;
  font-size: 16px;
  color: var(--dl-ink);
}

.fit-list i {
  font-size: 20px;
  line-height: 1.2;
  flex: 0 0 auto;
}

.fit-card.pains i {
  color: #b23a48;
}

.fit-card.gets i {
  color: var(--dl-purple);
}

.steps-section {
  padding: 30px 0 60px;
}



.step-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--dl-line);
  border-radius: 14px;
  padding: 26px 22px 22px;
  height: 100%;
  box-shadow: 0 6px 24px rgba(48, 61, 78, 0.05);
}

.step-num {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--dl-purple);
  color: #fff;
  font-weight: 700;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.step-card h3 {
  font-size: 19px;
  font-weight: 700;
  color: var(--dl-ink);
  margin-bottom: 8px;
}

.step-card p {
  font-size: var(--fs-body);
  color: var(--dl-muted);
  margin: 0;
}

.cta-band {
  background: linear-gradient(120deg, var(--dl-purple) 0%, var(--dl-purple-dark) 100%);
  color: #fff;
  padding: 44px 0;
}

.cta-band h2 {
  font-family: "Baloo 2", sans-serif;
  font-size: var(--fs-subsection);
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
}

.cta-band p {
  color: #f3e6f3;
  font-size: var(--fs-lead);
  margin: 0;
}

.cta-band .tool-btn {
  background: #fff;
  color: var(--dl-purple-dark);
}

.cta-band .tool-btn:hover,
.cta-band .tool-btn:focus-visible {
  background: var(--dl-purple-soft);
  color: var(--dl-purple-dark);
}

.cta-band .tool-btn-outline {
  background: transparent;
  color: #fff;
  border-color: #fff;
}

.cta-band .tool-btn-outline:hover,
.cta-band .tool-btn-outline:focus-visible {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.cta-band :focus-visible {
  outline-color: #fff;
}

.tool-promo {
  display: flex;
  flex-direction: column;
}

.tool-promo i {
  font-size: 34px;
  color: var(--dl-purple);
}

.tool-promo h3 {
  margin: 10px 0 8px;
}

.tool-promo p {
  color: var(--dl-muted);
  flex: 1;
}

.tool-promo .tool-btn {
  align-self: flex-start;
}

/* Dark service heroes (.breadcrumbs-service) */
.breadcrumbs-service .hero-lead {
  color: #e3e7ec;
  font-size: var(--fs-lead);
}

.breadcrumbs-service .tool-btn-outline {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.85);
}

.breadcrumbs-service .tool-btn-outline:hover,
.breadcrumbs-service .tool-btn-outline:focus-visible {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.breadcrumbs-service :focus-visible {
  outline-color: #fff;
}

.breadcrumbs-service .head-image.assess-hero-image {
  width: 100%;
  max-width: 520px;
  height: auto;
}
