body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
    'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
    sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

code {
  font-family: source-code-pro, Menlo, Monaco, Consolas, 'Courier New',
    monospace;
}

/* Calculator */
.tco-calculator {
  /* font-family: "Basis Grotesque Arabic Pro", -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; */
  color: var(--primary-dark, #1f1e1f);
  padding: 2.5rem;
  border-radius: 1rem;
  background: linear-gradient(180deg, #EDE8F2 0%, #F9F9F9 20%), #F9F9F9; 
}

/* Calculator Header – two-column layout */
.calculator-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 2rem;
}

.calculator-header h1 {
  flex: 0 0 45%;
  font-size: 3rem;
  font-weight: 400;
  line-height: 1.167;
  margin: 0;
  color: var(--primary-dark, #1f1e1f);
}

.calculator-header__right {
  flex: 0 0 50%;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.calculator-header__subtitle {
  font-size: 1.5rem;
  font-weight: 500;
  line-height: 1.33;
  margin: 0;
  color: var(--primary-dark, #1f1e1f);
}

.calculator-header__body {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.calculator-header__body p {
  margin: 0;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  color: var(--secondary, #464a54);
}

/* Headings (inside results/comparison sections) */
.tco-calculator h1 {
  font-size: 2.5rem;
  font-weight: 400;
  line-height: 1.2;
  margin: 0;
}

.tco-calculator h2 {
  font-size: 1.5rem;
  font-weight: 500;
  line-height: 1.33;
  margin: 0;
}

/* Instructions */
.instructions {
  margin-top: 2rem;
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 1.44;
  color: var(--tertiary, #717275);
}

/* Form */
.calculator-form {
  margin-top: 0.625rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr) auto;
  gap: 1rem;
}

/* Input Group */
.input-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.input-group label {
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 1.42;
}

.input-group input {
  padding: 1rem 1.25rem;
  border: 1px solid var(--grey--divider, #e4e4e4);
  border-radius: 0.625rem;
  font-size: 1rem;
  font-weight: 400;
  color: var(--secondary, #464a54);
  background: var(--neutral--white, white);
  transition: border-color 0.2s;
}

.input-wrapper.dollar-sign input {
  padding-left: 2.125rem;
}

.input-wrapper.dollar-sign {
  position: relative;
  display: flex;
  flex-direction: column;
}

.input-wrapper.dollar-sign::before {
  content: "$";
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  color: var(--secondary, #464a54);
  position: absolute;
  left: 1.25rem;
  top: 50%;
  z-index: 1;
  transform: translateY(-50%);
  pointer-events: none;
}

.input-group input::placeholder {
  color: var(--neutral--neutral-light, #aaa);
}

.input-group input:hover {
  border-color: var(--neutral--neutral-lighter, #ccc);
}

.input-group input:focus {
  outline: none;
  border-color: var(--neutral--neutral-dark, #444);
}

/* Error States */
.input-group input.error {
  border-color: #dc2626;
}

.input-group input.error:focus {
  border-color: #dc2626;
}

.error-message {
  font-size: 0.75rem;
  color: #dc2626;
  margin-top: -0.25rem;
}

/* Calculate Button */
.primary-button {
  gap: 1.75rem;
  background-color: var(--brand--purple, #28032f);
  color: var(--neutral--white, white);
  text-align: center;
  border-radius: 0.625rem;
  justify-content: space-between;
  align-items: center;
  margin-left: 0;
  margin-right: 0;
  padding: 0.25rem 0.25rem 0.25rem 1.75rem;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.5;
  text-decoration: none;
  transition-property: transform 0.2s ease, background-color 0.3s ease;
  display: flex;
  position: relative;
  align-self: self-start;
  max-width: 100%;
  border: none;
  cursor: pointer;
}

.primary-button .button-text {
  transition-delay: 0.05s;
  font-weight: 500;
  transition: transform 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
}

.button-arrow-wrapper {
  background-color: var(--neutral--white, white);
  color: var(--brand--purple, #28032f);
  border-radius: 0.5rem;
  flex: none;
  justify-content: center;
  align-items: center;
  width: 3rem;
  height: 3rem;
  transition: right 0.35s, color 0.2s, background-color 0.3s, transform 0.4s;
  display: flex;
  position: relative;
  right: 0;
  transition-delay: 0s;
}

.button-arrow-icon {
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 1.25rem;
  height: 1.25rem;
  transition-property: transform 0.3s ease;
  animation-delay: 0.3s;
  display: flex;
}

.primary-button:hover .button-arrow-wrapper {
  right: calc(100% - 1.5rem);
}

.primary-button:hover .button-text {
  transform: translateX(2.875rem);
}

.primary-button:hover .button-arrow-icon {
  transform: rotate(-42deg);
}

.primary-button:hover .button-arrow-wrapper {
  background: #4F3655;
  color: white;
}



/* Less animation in mobile */

@media (max-width: 520px) {
  .primary-button:active .button-arrow-wrapper {
    right: auto !important;
    background: #4F3655;
    color: white;
    transition: all 0.15s ease; /* faster */
  }
  
  .primary-button:hover .button-arrow-wrapper {
    right: auto !important;
  }
  
  .primary-button:active .button-text {
    transform: translateX(0px) !important;
    transition: transform 0.15s ease;
  }
  
  .primary-button:hover .button-text {
    transform: translateX(0px) !important;
    transition: transform 0.15s ease;
  }
}

/* Result */
.result {
  margin-top: 3rem;
  padding-top: 3rem;
  border-top: 1px solid var(--grey--divider, #e4e4e4);
}

/* Cost Cards */
.cost-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 1.5rem;
}

.cost-card {
  padding: 1.5rem;
  border-radius: 1rem;
  color: white;
  display: flex;
  gap: 0.75rem;
  flex-direction: column;
  background-color: var(--brand--light-purple, #4f3655);
  border: 1px solid var(--grey--divider, #e4e4e4);
}

.cost-value {
  font-size: 2rem;
  font-weight: 500;
  line-height: 1.25;
}

.cost-label {
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.5;
}

/* Why TCO Section */
.tco-why-section {
  background: var(--brand--ultra-light-purple, #EEE9F3);
  border-radius: 1rem;
  padding: 1rem;
  display: flex;
  gap: 1.5rem;
  align-items: stretch;
  margin-top: 1.5rem;
}

.tco-why-section__left {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding: 2.5rem;
}

.tco-why-section__text {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.tco-why-section__heading {
  font-size: 2.5rem;
  font-weight: 400;
  line-height: 1.2;
  color: var(--primary-dark, #1f1e1f);
  margin: 0;
}

.tco-why-section__body {
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  color: var(--secondary, #464a54);
  margin: 0;
}

.tco-why-section__right {
  flex: 1;
  background: white;
  border-radius: 1rem;
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.tco-why-section__list-heading {
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.4;
  color: var(--secondary, #464a54);
  margin: 0;
}

.tco-why-section__list-content ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.tco-why-section__list-content li {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  color: var(--secondary, #464a54);
}

.tco-why-section__list-content li::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--secondary, #464a54);
  flex-shrink: 0;
  margin-top: calc((1.5em - 6px) / 2);
}

.tco-why-section__info {
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  color: var(--secondary, #464a54);
  margin: 0;
}

.tco-why-section__left .primary-button {
  margin-top: 0;
}

@media (max-width: 991px) {
  .tco-why-section {
    flex-direction: column;
  }
}

@media (max-width: 479px) {
  .tco-why-section__left,
  .tco-why-section__right {
    padding: 1.5rem;
  }

  .tco-why-section__heading {
    font-size: 1.75rem;
  }
}

/* CTA Section */
.cta-section {
  background: var(--brand--ultra-light-purple, #EEE9F3);
  border-radius: 1rem;
  padding: 3.75rem 2rem;
  margin-top: 1.5rem;
  margin-bottom: 2.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 1.875rem;
}

.tco-calculator .cta-title {
  font-size: 2rem;
  font-weight: 400;
  line-height: 1.75;
  margin: 0;
  max-width: none;
}

.cta-section .cta-button {
  align-self: center;
  margin: 0;
}

/* Comparison Section */
.comparison-heading {
  margin-top: 2.5rem !important;
}

.comparison-section {
  margin-top: 1.5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  overflow: hidden;
}

/* Chart */
.chart-container {
  background: white;
  padding: 1.5rem;
  border-radius: 0.5rem;
  border: 1px solid var(--grey--divider, #e4e4e4);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Comparison Table */
.comparison-table-wrapper {
  border: 1px solid var(--grey--divider, #e4e4e4);
  border-radius: 0.5rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  width: 100%;
  max-width: 100%;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
}

.comparison-table thead {
  background: var(--brand--light-purple, #4f3655);
  color: white;
}

.comparison-table th {
  padding: 0.75rem 1rem;
  text-align: left;
  font-weight: 500;
  font-size: 0.875rem;
  line-height: 1.42;
  border-right: 1px solid var(--grey--divider, #e4e4e4);
  border-bottom: 1px solid var(--grey--divider, #e4e4e4);
}

.comparison-table th:last-child {
  border: none;
}

.comparison-table tbody tr {
  border-bottom: 1px solid var(--grey--divider, #e4e4e4);
}

.comparison-table tbody tr:last-child {
  border-bottom: none;
}

.comparison-table td {
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  border-right: 1px solid var(--grey--divider, #e4e4e4);
}

.comparison-table td:last-child {
  border: none;
}

.comparison-table tbody tr:nth-child(odd) {
  background: rgba(238, 233, 243, 0.55);
}

.comparison-table tbody tr:nth-child(even) {
  background: #EEE9F3;
}

/* Table Disclaimer */
.table-disclaimer {
  margin-top: 0.625rem;
  font-size: 0.625rem;
  color: var(--tertiary, #717275);
  line-height: 1.4;
}

@media (min-width: 1281px) {
  .primary-button {
    margin-top: 28px;
  }
}

@media (max-width: 1280px) and (min-width: 768px) {
  .calculator-form {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 991px) {
  .calculator-header {
    flex-direction: column;
  }

  .calculator-header h1,
  .calculator-header__right {
    flex: none;
    width: 100%;
  }

  .comparison-section {
    grid-template-columns: 1fr;
  }

  .cost-cards {
    grid-template-columns: repeat(1, 1fr);
  }

  .tco-why-section__left {
    padding: 0;
  }

  .tco-calculator .cta-title {
    line-height: 1.3;
  }
}

@media (max-width: 767px) {
  .tco-calculator {
    padding: 1.5rem;
  }

  .calculator-form {
    grid-template-columns: repeat(1, 1fr);
  }

  .comparison-table {
    min-width: 500px;
  }
}

/* ============================================================
   ROI CALCULATOR
   ============================================================ */

.roi-calculator {
  color: var(--primary-dark, #1f1e1f);
  padding: 2.5rem;
  border: 1px solid #E4E4E4;
  border-radius: 1rem;
  background: #F9F9F9;
}

.roi-calculator__title {
  font-size: 2.5rem;
  font-weight: 400;
  line-height: 1.2;
  margin: 0 0 2rem;
  padding: 0;
}

/* 2-column grid; last item spans full width via modifier class */
.roi-calculator__form {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.roi-calculator__full-width {
  grid-column: 1 / -1;
}

/* Results container */
.roi-calculator__results {
  padding: 2rem;
  background: linear-gradient(180deg, #EDE8F2 0%, #F9F9F9 20%), #F9F9F9;
  border-radius: 1rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Light results box */
.roi-results-box {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}

.roi-results-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 0.875rem;
  border-bottom: 1px solid #E4E4E4;
  gap: 1rem;
}

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

.roi-results-row__label {
  font-size: 1rem;
  font-weight: 400;
  color: var(--secondary, #464a54);
  line-height: 1.5;
}

.roi-results-row__value {
  font-size: 1rem;
  font-weight: 400;
  color: var(--primary-dark, #1f1e1f);
  white-space: nowrap;
}

/* Dark savings box */
.roi-savings-box {
  background: linear-gradient(180deg, #3E2852 0%, #1C1720 40%);
  border-radius: 1.5rem;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.roi-savings-box__label {
  font-size: 1rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.5;
}

.roi-savings-box__value {
  font-size: 2.5rem;
  font-weight: 400;
  color: var(--neutral--white, white);
  line-height: 1.2;
}

/* CTA reuse — already defined for .tco-calculator, works as-is */

/* Responsive */
@media (max-width: 767px) {
  .roi-calculator {
    padding: 1.5rem;
  }

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

  .roi-calculator__full-width {
    grid-column: auto;
  }
}

@media (max-width: 479px) {
  .roi-calculator {
    padding: 1.25rem;
  }

  .roi-calculator__title {
    font-size: 1.5rem;
  }

  .roi-savings-box__label {
    font-size: 0.875rem;
  }

  .roi-savings-box__value {
    font-size: 2rem;
  }

  .roi-calculator__results {
    padding: 1rem 1rem 0.25rem;
  }

  .roi-results-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem
  }

  .roi-results-row__label {
    font-size: 0.875rem;
  }

  .roi-savings-box {
    margin: 0 -1rem;
    padding: 1rem 1.25rem;
    border-radius: 1rem;
  }
}

.roi-calculator__disclaimer {
  margin-top: 0;
  margin-bottom: 0;
  font-size: 0.7rem;
  color: #888;
  line-height: 1.5;
}

/* ============================================================
   END ROI CALCULATOR
   ============================================================ */

@media (max-width: 479px) {
  .calculator-header h1 {
    font-size: 1.75rem;
  }

  .tco-calculator h1 {
    font-size: 1.75rem;
  }

  .instructions {
    margin-top: 1.25rem;
  }

  .result {
    margin-top: 2rem;
    padding-top: 2rem;
  }

  .comparison-section {
    display: flex;
    flex-direction: column;
  }

  .chart-container {
    padding: 0.75rem;
  }

  .cta-section {
    padding: 2rem 1.5rem;
  }

  .tco-calculator .cta-title {
    font-size: 1.5rem;
  }
}

/* ============================================================
   SECURITY ASSESSMENT QUIZ
   Light brand theme — matches the TCO / ROI calculators.
   Semantic colors (green / amber / red) are kept for
   covered / not-sure / gaps as they carry meaning.
   ============================================================ */

.security-assessment {
  --sa-green: #059669;
  --sa-green-dim: rgba(5, 150, 105, 0.08);
  --sa-green-border: rgba(5, 150, 105, 0.25);
  --sa-amber: #b45309;
  --sa-amber-dim: rgba(180, 83, 9, 0.08);
  --sa-amber-border: rgba(180, 83, 9, 0.25);
  --sa-red: #dc2626;
  --sa-red-dim: rgba(220, 38, 38, 0.06);
  --sa-red-border: rgba(220, 38, 38, 0.25);

  /* Number pop-in animation (adapted from transitions.dev) */
  --sa-digit-dur: 500ms;
  --sa-digit-distance: 8px;
  --sa-digit-stagger: 70ms;
  --sa-digit-blur: 2px;
  --sa-digit-ease: cubic-bezier(0.34, 1.45, 0.64, 1);
  --sa-digit-dir-x: 0;
  --sa-digit-dir-y: 1;

  color: var(--primary-dark, #1f1e1f);
  background: linear-gradient(180deg, #ede8f2 0%, #f9f9f9 20%), #f9f9f9;
  border: 1px solid #e4e4e4;
  border-radius: 1rem;
  padding: 2.5rem;
  box-sizing: border-box;
  width: 100%;
}

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

.sa-container {
  max-width: 640px;
  margin: 0 auto;
}

/* Header */
.sa-header {
  text-align: center;
  padding: 0 0 2rem;
}

.sa-badge {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.125rem;
  text-transform: uppercase;
  color: var(--brand--purple, #28032f);
  border: 1px solid var(--brand--purple, #28032f);
  padding: 0.3125rem 1rem;
  border-radius: 100px;
  margin-bottom: 1.25rem;
}

.sa-header h1,
.sa-header h2 {
  font-size: 2.5rem;
  font-weight: 400;
  line-height: 1.2;
  color: var(--primary-dark, #1f1e1f);
  margin: 0 0 0.75rem;
}

.sa-header p {
  font-size: 1rem;
  color: var(--secondary, #464a54);
  line-height: 1.55;
  max-width: 29rem;
  margin: 0 auto;
  white-space: pre-line;
}

/* Intro card */
.sa-intro-card {
  background: var(--neutral--white, #fff);
  border: 1px solid #e4e4e4;
  border-radius: 1rem;
  padding: 2rem;
}

.sa-intro-card h3 {
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--primary-dark, #1f1e1f);
  margin: 0 0 1rem;
}

.sa-intro-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
}

.sa-intro-list li {
  font-size: 0.875rem;
  color: var(--secondary, #464a54);
  line-height: 1.55;
  padding: 0.5rem 0 0.5rem 1.5rem;
  position: relative;
}

.sa-intro-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.875rem;
  width: 0.375rem;
  height: 0.375rem;
  border-radius: 50%;
  background: var(--brand--purple, #28032f);
}

.sa-intro-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: center;
}

/* Brand .primary-button defaults to align-self: self-start — center it here */
.sa-intro-actions .primary-button {
  align-self: center;
}

/* Progress */
.sa-progress {
  padding: 0 0 1.75rem;
}

.sa-progress-bar {
  height: 0.25rem;
  background: #e4e4e4;
  border-radius: 100px;
  overflow: hidden;
}

.sa-progress-fill {
  height: 100%;
  background: var(--brand--purple, #28032f);
  border-radius: 100px;
  transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.sa-progress-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--secondary, #464a54);
  margin-top: 0.625rem;
  font-weight: 500;
}

/* Quiz card */
.sa-card {
  background: var(--neutral--white, #fff);
  border: 1px solid #e4e4e4;
  border-radius: 1rem;
  padding: 2.25rem 2rem;
  min-height: 15rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  animation: sa-slideIn 0.35s ease;
}

@keyframes sa-slideIn {
  from {
    opacity: 0;
    transform: translateX(1.25rem);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes sa-slideOut {
  from {
    opacity: 1;
    transform: translateX(0);
  }
  to {
    opacity: 0;
    transform: translateX(-1.25rem);
  }
}

.sa-card.exit {
  animation: sa-slideOut 0.25s ease forwards;
}

.sa-q-number {
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--neutral--neutral-light, #888);
  letter-spacing: 0.09375rem;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

.sa-q-text {
  font-size: 1.25rem;
  font-weight: 500;
  line-height: 1.4;
  color: var(--primary-dark, #1f1e1f);
  margin-bottom: 1rem;
  white-space: pre-line;
}

.sa-q-tag {
  display: inline-block;
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.0625rem;
  text-transform: uppercase;
  color: var(--brand--purple, #28032f);
  background: var(--brand--ultra-light-purple, #eee9f3);
  padding: 0.25rem 0.625rem;
  border-radius: 0.25rem;
  margin-bottom: 1.75rem;
}

/* Answer buttons */
.sa-answers {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.sa-btn-answer {
  width: 100%;
  padding: 0.875rem 1.125rem;
  border: 1px solid #e4e4e4;
  border-radius: 0.625rem;
  background: var(--neutral--white, #fff);
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--primary-dark, #1f1e1f);
  text-align: left;
}

.sa-btn-answer:hover {
  border-color: #ccc;
}

.sa-btn-answer.yes:hover {
  border-color: var(--sa-green-border);
  background: var(--sa-green-dim);
  color: var(--sa-green);
}

.sa-btn-answer.no:hover {
  border-color: var(--sa-red-border);
  background: var(--sa-red-dim);
  color: var(--sa-red);
}

.sa-btn-answer.unsure:hover {
  border-color: var(--sa-amber-border);
  background: var(--sa-amber-dim);
  color: var(--sa-amber);
}

.sa-btn-icon {
  width: 1.5rem;
  height: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Back button */
.sa-back {
  background: transparent;
  border: none;
  color: var(--neutral--neutral-light, #888);
  font-family: inherit;
  font-size: 0.75rem;
  cursor: pointer;
  padding: 0.5rem 0;
  margin-bottom: 0.75rem;
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  transition: color 0.2s ease;
}

.sa-back:hover {
  color: var(--secondary, #464a54);
}

/* Results */
.sa-results {
  animation: sa-fadeUp 0.5s ease;
}

@keyframes sa-fadeUp {
  from {
    opacity: 0;
    transform: translateY(1rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Score card — the dark brand highlight, same gradient as the ROI savings box */
.sa-score-card {
  background: linear-gradient(180deg, #3e2852 0%, #1c1720 40%);
  border-radius: 1rem;
  padding: 2.75rem 2.25rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  margin-bottom: 1.5rem;
}

.sa-score-card::before {
  content: "";
  position: absolute;
  top: -5rem;
  right: -3.75rem;
  width: 12.5rem;
  height: 12.5rem;
  border-radius: 50%;
  background: var(--brand--light-purple, #4f3655);
  opacity: 0.5;
}

.sa-score-card::after {
  content: "";
  position: absolute;
  bottom: -6.25rem;
  left: -2.5rem;
  width: 11.25rem;
  height: 11.25rem;
  border-radius: 50%;
  background: var(--brand--light-purple, #4f3655);
  opacity: 0.2;
}

.sa-sc-label {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.125rem;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 0.75rem;
  position: relative;
  z-index: 1;
}

.sa-sc-number {
  font-size: 5rem;
  font-weight: 500;
  line-height: 1;
  color: var(--neutral--white, #fff);
  margin-bottom: 0.25rem;
  position: relative;
  z-index: 1;
}

.sa-sc-of {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.6);
  font-weight: 400;
  position: relative;
  z-index: 1;
}

.sa-sc-breakdown {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 1.5rem;
  position: relative;
  z-index: 1;
  flex-wrap: wrap;
}

.sa-sc-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.sa-sc-stat-num {
  font-size: 1.375rem;
  font-weight: 600;
}

.sa-sc-stat-num.covered {
  color: #34d399;
}

.sa-sc-stat-num.gaps {
  color: #f87171;
}

.sa-sc-stat-num.unsure {
  color: #fbbf24;
}

.sa-sc-stat-label {
  font-size: 0.6875rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: 0.0625rem;
  text-transform: uppercase;
  margin-top: 0.25rem;
}

.sa-sc-verdict {
  font-size: 0.9375rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.8);
  margin: 1.5rem auto 0;
  position: relative;
  z-index: 1;
  line-height: 1.5;
  max-width: 26rem;
}

/* Section heads */
.sa-section-head {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--secondary, #464a54);
  letter-spacing: 0.0625rem;
  text-transform: uppercase;
  margin: 1.75rem 0 0.875rem;
}

/* Gap items */
.sa-gap {
  background: var(--neutral--white, #fff);
  border: 1px solid #e4e4e4;
  border-left: 3px solid var(--sa-red);
  border-radius: 0.625rem;
  padding: 1.125rem 1.375rem;
  margin-bottom: 0.5rem;
}

.sa-gap-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--sa-red);
  margin-bottom: 0.25rem;
}

.sa-gap-text {
  font-size: 0.8125rem;
  color: var(--secondary, #464a54);
  line-height: 1.5;
}

/* Unsure items */
.sa-unsure {
  background: var(--neutral--white, #fff);
  border: 1px solid #e4e4e4;
  border-left: 3px solid var(--sa-amber);
  border-radius: 0.625rem;
  padding: 1.125rem 1.375rem;
  margin-bottom: 0.5rem;
}

.sa-unsure-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--sa-amber);
  margin-bottom: 0.25rem;
}

.sa-unsure-text {
  font-size: 0.8125rem;
  color: var(--secondary, #464a54);
  line-height: 1.5;
}

/* Strengths */
.sa-strength {
  background: var(--sa-green-dim);
  border: 1px solid var(--sa-green-border);
  border-radius: 0.625rem;
  padding: 0.875rem 1.25rem;
  margin-bottom: 0.375rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--sa-green);
  display: flex;
  align-items: center;
  gap: 0.625rem;
}

/* CTA box */
.sa-cta-box {
  background: var(--brand--ultra-light-purple, #eee9f3);
  border-radius: 1rem;
  padding: 2rem;
  text-align: center;
  margin-top: 1.75rem;
}

.sa-cta-box h3 {
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--primary-dark, #1f1e1f);
  margin: 0 0 0.5rem;
}

.sa-cta-box p {
  font-size: 0.875rem;
  color: var(--secondary, #464a54);
  margin: 0 0 1rem;
  line-height: 1.55;
  white-space: pre-line;
}

.sa-cta-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: center;
}

/* Brand .primary-button defaults to align-self: self-start — center it here */
.sa-cta-actions .primary-button {
  align-self: center;
}

.sa-cta-secondary {
  display: inline-block;
  color: var(--secondary, #464a54);
  font-size: 0.8125rem;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
  transition: color 0.2s ease;
  background: transparent;
  border: none;
  font-family: inherit;
  padding: 0.25rem 0;
}

.sa-cta-secondary:hover {
  color: var(--brand--purple, #28032f);
}

.sa-restart {
  text-align: center;
  padding: 1.25rem 0 0;
}

.sa-restart a {
  font-size: 0.75rem;
  color: var(--neutral--neutral-light, #888);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
  transition: color 0.2s ease;
}

.sa-restart a:hover {
  color: var(--secondary, #464a54);
}

/* Responsive */
@media (max-width: 767px) {
  .security-assessment {
    padding: 1.5rem;
  }
}

@media (max-width: 479px) {
  .security-assessment {
    padding: 1.25rem;
  }
  .sa-header h1,
  .sa-header h2 {
    font-size: 1.75rem;
  }
  .sa-card {
    padding: 1.75rem 1.375rem;
    min-height: 13rem;
  }
  .sa-q-text {
    font-size: 1.0625rem;
  }
  .sa-score-card {
    padding: 2.25rem 1.5rem;
  }
  .sa-sc-number {
    font-size: 4rem;
  }
  .sa-intro-card,
  .sa-cta-box {
    padding: 1.5rem 1.375rem;
  }
}

/* Number pop-in — replays whenever a digit changes (transitions.dev) */
@keyframes sa-digit-pop-in {
  0% {
    transform: translate(
      calc(var(--sa-digit-distance) * var(--sa-digit-dir-x)),
      calc(var(--sa-digit-distance) * var(--sa-digit-dir-y))
    );
    opacity: 0;
    filter: blur(var(--sa-digit-blur));
  }
  100% {
    transform: translate(0, 0);
    opacity: 1;
    filter: blur(0);
  }
}

.sa-digit-group {
  display: inline-flex;
  align-items: baseline;
}

.sa-digit {
  display: inline-block;
  will-change: transform, opacity, filter;
}

.sa-digit-group.is-animating .sa-digit {
  animation: sa-digit-pop-in var(--sa-digit-dur) var(--sa-digit-ease) both;
}

.sa-digit-group.is-animating .sa-digit[data-stagger="1"] {
  animation-delay: var(--sa-digit-stagger);
}

.sa-digit-group.is-animating .sa-digit[data-stagger="2"] {
  animation-delay: calc(var(--sa-digit-stagger) * 2);
}

@media (prefers-reduced-motion: reduce) {
  .sa-digit-group .sa-digit {
    animation: none !important;
  }
}

/* ============================================================
   END SECURITY ASSESSMENT QUIZ
   ============================================================ */

