/* ==========================================================================
   WebWizBD Feasibility Assessment & AI Scaling Blueprint Stylesheet
   Design Philosophy: Apple visionOS Frosted Glassmorphism, Playfair Serif Accents,
   High-Contrast Metrics & High-DPI Executive PDF Paper Styling.
   Zero bang-important specificity rule strictly maintained.
   ========================================================================== */

.webwiz-feasibility-app {
  width: 100%;
  max-width: 1040px;
  margin: 0 auto;
  font-family: var(--tp-ff-body, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif);
  --webwiz-num-font: "Outfit", "Inter", "Canva Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: #0f1d33;
  box-sizing: border-box;
}

/* --------------------------------------------------------------------------
   01. Shared Glassmorphism Cards
   -------------------------------------------------------------------------- */
.webwiz-fe-card {
  position: relative;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(28px) saturate(160%);
  -webkit-backdrop-filter: blur(28px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.92);
  border-radius: 28px;
  padding: 44px 40px;
  box-shadow:
    0 16px 48px -8px rgba(15, 29, 51, 0.07),
    0 2px 10px rgba(15, 29, 51, 0.03),
    inset 0 1.5px 0 rgba(255, 255, 255, 1);
  box-sizing: border-box;
  overflow: hidden;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@media (max-width: 768px) {
  .webwiz-fe-card {
    padding: 32px 20px;
    border-radius: 20px;
  }
}

/* --------------------------------------------------------------------------
   02. Step Indicator & Header
   -------------------------------------------------------------------------- */
.webwiz-fe-wizard-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 24px;
}

.webwiz-fe-step-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 12px;
}

.webwiz-fe-step-dot {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12.5px;
  font-weight: 700;
  background: #f1f5f9;
  color: #64748b;
  border: 1.5px solid #e2e8f0;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.webwiz-fe-step-dot.is-active {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  color: #ffffff;
  border-color: #2563eb;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
  transform: scale(1.08);
}

.webwiz-fe-step-dot.is-completed {
  background: #10b981;
  color: #ffffff;
  border-color: #10b981;
}

.webwiz-fe-step-line {
  width: 30px;
  height: 2px;
  background: #e2e8f0;
  border-radius: 2px;
}

@media (max-width: 480px) {
  .webwiz-fe-step-line {
    width: 16px;
  }
}

.webwiz-fe-step-label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #1d4ed8;
  background: #eff6ff;
  border: 1px solid rgba(37, 99, 235, 0.2);
  padding: 4px 14px;
  border-radius: 999px;
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.08);
}

/* --------------------------------------------------------------------------
   03. Step Panes & Option Buttons
   -------------------------------------------------------------------------- */
.webwiz-fe-step-pane {
  display: none;
}

.webwiz-fe-step-pane.is-active {
  display: block;
  animation: webwizFeFadeSlide 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes webwizFeFadeSlide {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.webwiz-fe-step-title {
  font-family: var(--tp-ff-heading, "Outfit", sans-serif);
  font-size: clamp(20px, 2.3vw, 24px);
  font-weight: 700;
  color: #0f1d33;
  letter-spacing: -0.02em;
  text-align: center;
  margin: 0 auto 18px auto;
  max-width: 620px;
  line-height: 1.32;
}

.webwiz-fe-step-subtitle {
  display: none;
  margin: 0;
}

.webwiz-fe-options-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

@media (max-width: 720px) {
  .webwiz-fe-options-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}

.webwiz-fe-option-btn {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  padding: 16px 18px;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1.5px solid rgba(226, 232, 240, 0.95);
  border-radius: 16px;
  cursor: pointer;
  box-shadow: 
    inset 0 1px 1.5px rgba(255, 255, 255, 0.9),
    0 4px 16px -2px rgba(15, 29, 51, 0.04);
  transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
  position: relative;
  overflow: hidden;

  &::after {
    content: "✓";
    position: absolute;
    top: 12px;
    right: 12px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #2563eb;
    color: #ffffff;
    font-size: 11px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0.6);
    transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  }

  &:hover {
    background: #ffffff;
    border-color: rgba(37, 99, 235, 0.5);
    transform: translateY(-2px);
    box-shadow:
      inset 0 1px 2px rgba(255, 255, 255, 1),
      0 10px 24px -4px rgba(37, 99, 235, 0.12),
      0 3px 8px rgba(15, 29, 51, 0.04);

    .webwiz-fe-option-icon {
      background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
      border-color: #2563eb;
      transform: scale(1.06);
      box-shadow: 0 3px 10px rgba(37, 99, 235, 0.25);
    }
  }

  &.is-selected {
    background: #ffffff;
    border-color: #2563eb;
    box-shadow: 
      0 0 0 3px rgba(37, 99, 235, 0.18),
      0 10px 24px -4px rgba(37, 99, 235, 0.15);
    transform: translateY(-1px);

    &::after {
      opacity: 1;
      transform: scale(1);
    }

    .webwiz-fe-option-icon {
      background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
      border-color: #2563eb;
      box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
    }
  }

  &:active {
    transform: translateY(0);
  }
}

.webwiz-fe-option-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  border: 1px solid rgba(37, 99, 235, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  margin-bottom: 8px;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  flex-shrink: 0;
}

.webwiz-fe-option-title {
  font-family: var(--tp-ff-heading, "Outfit", sans-serif);
  font-size: 14.5px;
  font-weight: 700;
  color: #0f1d33;
  margin-bottom: 3px;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.webwiz-fe-option-desc {
  font-family: var(--tp-ff-body);
  font-size: 12px;
  color: #64748b;
  line-height: 1.45;
}

.webwiz-fe-wizard-actions {
  display: flex;
  justify-content: flex-start;
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid rgba(226, 232, 240, 0.6);
}

.webwiz-fe-btn-back {
  background: transparent;
  border: none;
  color: #64748b;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  padding: 6px 12px;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.webwiz-fe-btn-back:hover {
  color: #0f1d33;
  background: rgba(15, 29, 51, 0.05);
}

/* --------------------------------------------------------------------------
   03b. Smart Input Cards & Interactive Suggestion Chips
   -------------------------------------------------------------------------- */
.webwiz-fe-input-card {
  background: rgba(248, 250, 252, 0.65);
  border: 1.5px solid rgba(226, 232, 240, 0.95);
  border-radius: 18px;
  padding: 22px 24px;
  margin-top: 4px;
  box-shadow: 0 4px 16px -2px rgba(15, 29, 51, 0.04);

  @media (max-width: 600px) {
    padding: 16px 14px;
  }
}

.webwiz-fe-input-label {
  display: block;
  font-size: 13.5px;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 8px;
  text-align: left;
}

.webwiz-fe-field-with-btn {
  display: flex;
  gap: 12px;
  align-items: stretch;

  @media (max-width: 640px) {
    flex-direction: column;
  }
}

.webwiz-fe-text-input {
  flex: 1;
  padding: 13px 18px;
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  border-radius: 12px;
  font-size: 14.5px;
  font-family: var(--tp-ff-body, sans-serif);
  color: #0f1d33;
  box-sizing: border-box;
  transition: all 0.2s ease;

  &:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3.5px rgba(37, 99, 235, 0.16);
  }

  &::placeholder {
    color: #94a3b8;
  }
}

.webwiz-fe-btn-next {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 13px 26px;
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  color: #ffffff;
  border: none;
  border-radius: 12px;
  font-family: var(--tp-ff-heading, "Outfit", sans-serif);
  font-size: 14.5px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 6px 18px -2px rgba(37, 99, 235, 0.38);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);

  &:hover {
    background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
    transform: translateY(-1px);
    box-shadow: 0 10px 24px -3px rgba(37, 99, 235, 0.45);
  }

  &:active {
    transform: translateY(0);
  }
}

.webwiz-fe-chips-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
  text-align: left;
}

.webwiz-fe-chips-label {
  font-size: 12px;
  font-weight: 700;
  color: #64748b;
  margin-right: 4px;
}

.webwiz-fe-chip {
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 600;
  color: #334155;
  cursor: pointer;
  transition: all 0.18s ease;

  &:hover {
    background: #e2e8f0;
    color: #0f1d33;
    border-color: #cbd5e1;
    transform: translateY(-1px);
  }

  &.webwiz-fe-chip--special {
    background: rgba(37, 99, 235, 0.08);
    border-color: rgba(37, 99, 235, 0.25);
    color: #2563eb;

    &:hover {
      background: rgba(37, 99, 235, 0.15);
      border-color: #2563eb;
    }
  }
}

/* --------------------------------------------------------------------------
   04. Processing Loader & Dynamic Diagnostic Steps
   -------------------------------------------------------------------------- */
.webwiz-fe-loader {
  padding: 60px 20px;
  text-align: center;
}

.webwiz-fe-spinner {
  width: 52px;
  height: 52px;
  margin: 0 auto 24px auto;
  border: 3.5px solid rgba(37, 99, 235, 0.15);
  border-top-color: #2563eb;
  border-radius: 50%;
  animation: webwizFeSpin 0.8s linear infinite;
}

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

.webwiz-fe-loader-title {
  font-size: 20px;
  font-weight: 700;
  color: #0f1d33;
  margin: 0 0 12px 0;
}

.webwiz-fe-loader-steps {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 520px;
  margin: 26px auto 0 auto;
  text-align: left;
}

.webwiz-fe-lstep {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  border-radius: 14px;
  font-size: 13.5px;
  color: #64748b;
  background: rgba(248, 250, 252, 0.7);
  border: 1px solid #e2e8f0;
  opacity: 0.35;
  transform: translateX(0);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);

  &.is-active {
    opacity: 1;
    color: #0f1d33;
    font-weight: 600;
    background: #ffffff;
    border-color: #2563eb;
    box-shadow: 0 6px 18px rgba(37, 99, 235, 0.12);
    transform: translateX(6px);
  }

  .webwiz-lstep-icon {
    font-size: 16px;
    flex-shrink: 0;
  }
}

/* --------------------------------------------------------------------------
   05. Assessment Results View — Single Unified Executive Report Card
   -------------------------------------------------------------------------- */
.webwiz-fe-results {
  animation: webwizFeFadeSlide 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.webwiz-fe-report-card {
  position: relative;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-top: 3.5px solid #2563eb;
  border-radius: 20px;
  padding: 32px 34px 26px 34px;
  margin: 0 auto 28px auto;
  max-width: 820px;
  box-shadow:
    0 12px 36px -10px rgba(15, 29, 51, 0.06),
    0 1px 3px rgba(15, 29, 51, 0.03);
  box-sizing: border-box;
  overflow: hidden;

  @media (max-width: 768px) {
    padding: 22px 18px 20px 18px;
    border-radius: 16px;
  }
}

/* Minimal Clean Top Meta Bar */
.webwiz-fe-report-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid #f1f5f9;

  @media (max-width: 540px) {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}

.webwiz-fe-report-meta-tag {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #64748b;
  text-transform: uppercase;
}

.webwiz-fe-report-score-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: 999px;

  .webwiz-fe-score-number {
    font-family: var(--webwiz-num-font);
    font-size: 14.5px;
    font-weight: 800;
    color: #059669;
    line-height: 1;
    margin-bottom: 0;
  }

  .webwiz-fe-score-text {
    font-size: 11px;
    font-weight: 600;
    color: #059669;
    letter-spacing: 0.02em;
  }
}

/* Report Heading Block */
.webwiz-fe-report-heading-block {
  text-align: left;
  margin-bottom: 18px;

  .webwiz-fe-report-title {
    font-family: var(--tp-ff-heading, "Outfit", sans-serif);
    font-size: clamp(19px, 2.3vw, 23px);
    font-weight: 700;
    color: #0f1d33;
    letter-spacing: -0.02em;
    line-height: 1.3;
    margin: 0 0 8px 0;

    .webwiz-fe-highlight {
      color: #2563eb;
    }
  }
}

.webwiz-fe-verdict-row {
  margin-bottom: 4px;
}

.webwiz-fe-verdict-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 11px;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 700;
  color: #059669;
  line-height: 1.35;
}

.webwiz-fe-verdict-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10b981;
  flex-shrink: 0;
}

/* 3 Minimal Market Insights (Clean Cards) */
.webwiz-fe-minimal-insights {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 24px;
  text-align: left;

  @media (max-width: 768px) {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}

.webwiz-fe-insight-item {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  transition: all 0.2s ease;

  &:hover {
    background: #ffffff;
    border-color: #cbd5e1;
    box-shadow: 0 4px 14px rgba(15, 29, 51, 0.04);
  }
}

.webwiz-fe-insight-label {
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #64748b;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.webwiz-fe-insight-val {
  font-family: var(--webwiz-num-font);
  font-size: 15px;
  font-weight: 700;
  color: #0f1d33;
  margin-bottom: 5px;
  line-height: 1.3;

  &.webwiz-fe-text-green {
    color: #059669;
  }

  &.webwiz-fe-text-orange {
    color: #b45309;
    font-size: 13.5px;
  }

  .webwiz-fe-insight-vs {
    font-size: 11px;
    font-weight: 500;
    color: #94a3b8;
  }
}

.webwiz-fe-insight-desc {
  font-family: var(--tp-ff-body);
  font-size: 11.5px;
  color: #64748b;
  line-height: 1.45;
  margin: 0;
}

/* --------------------------------------------------------------------------
   06. Compact Key Metrics Ribbon (Refined Numbers)
   -------------------------------------------------------------------------- */
.webwiz-fe-metrics-ribbon {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 18px;

  @media (max-width: 768px) {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}

.webwiz-fe-metric-item {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 12px 15px;
  text-align: left;
  transition: all 0.2s ease;

  &.webwiz-fe-metric-item--focus {
    background: linear-gradient(180deg, #eff6ff 0%, #f8fafc 100%);
    border-color: rgba(37, 99, 235, 0.35);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.08);
  }
}

.webwiz-fe-metric-top {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
}

.webwiz-fe-metric-icon {
  font-size: 14px;
}

.webwiz-fe-metric-name {
  font-size: 11px;
  font-weight: 700;
  color: #475569;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.webwiz-fe-metric-num {
  font-family: var(--webwiz-num-font);
  font-feature-settings: 'tnum' 1, 'lnum' 1;
  font-variant-numeric: tabular-nums;
  font-size: 21px;
  font-weight: 800;
  color: #0f1d33;
  line-height: 1.15;
  margin-bottom: 2px;
  letter-spacing: -0.02em;

  &.webwiz-fe-metric-num--accent {
    color: #2563eb;
  }

  small {
    font-size: 13px;
    font-weight: 600;
    color: #64748b;
  }
}

.webwiz-fe-metric-note {
  font-size: 11px;
  color: #64748b;
  line-height: 1.35;
}

/* --------------------------------------------------------------------------
   07. Two-Column Executive Intelligence Matrix
   -------------------------------------------------------------------------- */
.webwiz-fe-dossier-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 18px;

  @media (max-width: 860px) {
    grid-template-columns: 1fr;
    gap: 14px;
  }
}

.webwiz-fe-dossier-col {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 15px;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  text-align: left;
}

.webwiz-fe-dossier-col-header {
  margin-bottom: 12px;
}

.webwiz-fe-dossier-section-tag {
  display: inline-block;
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #2563eb;
  background: rgba(37, 99, 235, 0.08);
  padding: 3px 8px;
  border-radius: 5px;
  margin-bottom: 5px;

  &.webwiz-fe-dossier-section-tag--orange {
    color: #c2410c;
    background: rgba(249, 115, 22, 0.10);
  }
}

.webwiz-fe-dossier-col-title {
  font-family: var(--tp-ff-heading, "Outfit", sans-serif);
  font-size: 15.5px;
  font-weight: 700;
  color: #0f1d33;
  margin: 0 0 4px 0;
  line-height: 1.3;
}

.webwiz-fe-dossier-col-desc {
  font-family: var(--tp-ff-body);
  font-size: 12px;
  color: #64748b;
  line-height: 1.45;
  margin: 0;
}

/* Left Column: Data Rows */
.webwiz-fe-table-matrix {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-top: auto;
}

.webwiz-fe-matrix-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 12px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 9px;

  &.webwiz-fe-matrix-row--split {
    align-items: center;
  }
}

.webwiz-fe-matrix-cell-label {
  display: flex;
  flex-direction: column;
  text-align: left;
  min-width: 0;
  flex: 1;

  strong {
    font-size: 12px;
    font-weight: 700;
    color: #1e293b;
    line-height: 1.3;
  }

  span {
    font-size: 10.5px;
    color: #64748b;
    line-height: 1.3;
    margin-top: 1px;
  }
}

.webwiz-fe-matrix-cell-val {
  font-family: var(--webwiz-num-font);
  font-feature-settings: 'tnum' 1, 'lnum' 1;
  font-variant-numeric: tabular-nums;
  font-size: 14px;
  font-weight: 800;
  color: #0f1d33;
  white-space: nowrap;
  text-align: right;
  flex-shrink: 0;

  &.webwiz-fe-matrix-cell-val--green {
    color: #059669;
  }
}

.webwiz-fe-matrix-split-vals {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.webwiz-fe-split-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 3px 7px;
  border-radius: 6px;
  min-width: 68px;
  text-align: center;

  &.webwiz-fe-split-badge--fse {
    background: rgba(16, 185, 129, 0.12);
    color: #065f46;
    border: 1px solid rgba(16, 185, 129, 0.25);
  }

  &.webwiz-fe-split-badge--diy {
    background: rgba(239, 68, 68, 0.08);
    color: #991b1b;
    border: 1px solid rgba(239, 68, 68, 0.2);
  }
}

.webwiz-fe-badge-sub {
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.webwiz-fe-split-num {
  font-family: var(--webwiz-num-font);
  font-feature-settings: 'tnum' 1, 'lnum' 1;
  font-variant-numeric: tabular-nums;
  font-size: 11.5px;
  font-weight: 800;
}

.webwiz-fe-text-green {
  color: #059669;
}

/* Right Column: Gaps List */
.webwiz-fe-gaps-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-top: auto;
}

.webwiz-fe-gap-card {
  background: #ffffff;
  border: 1px solid #fed7aa;
  border-left: 3.5px solid #f97316;
  border-radius: 9px;
  padding: 8px 12px;
  text-align: left;
}

.webwiz-fe-gap-badge {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #c2410c;
  margin-bottom: 2px;
  text-transform: uppercase;
}

.webwiz-fe-gap-card p {
  font-size: 11px;
  color: #334155;
  line-height: 1.4;
  margin: 0;
  font-weight: 500;
}

/* --------------------------------------------------------------------------
   08. Immediate Action Area (Embedded in Report Card Footer)
   -------------------------------------------------------------------------- */
.webwiz-fe-report-action-area {
  margin-top: 2px;
  padding-top: 16px;
  border-top: 1px solid rgba(226, 232, 240, 0.85);
  text-align: center;
}

.webwiz-fe-cta-bar {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin: 0 auto;
  gap: 9px;
}

.webwiz-fe-btn-open-modal {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px;
  background: rgba(37, 99, 235, 0.18);
  border: none;
  border-radius: 999px;
  cursor: pointer;
  overflow: hidden;
  text-decoration: none;
  box-shadow:
    0 8px 24px -4px rgba(37, 99, 235, 0.35),
    0 0 0 1px rgba(37, 99, 235, 0.12);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1);

  &:hover {
    background: rgba(37, 99, 235, 0.28);
    transform: translateY(-2px) scale(1.01);
    box-shadow:
      0 14px 32px -4px rgba(37, 99, 235, 0.48),
      0 0 0 1px rgba(37, 99, 235, 0.2);

    .webwiz-fe-btn-inner {
      background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
      box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35);
    }

    .webwiz-fe-btn-border-beam {
      animation-duration: 2.2s;
    }
  }

  &:active {
    transform: translateY(0) scale(0.99);
  }

  &:focus-visible {
    outline: 2px solid #38bdf8;
    outline-offset: 3px;
  }
}

/* Infinitely rotating conic border beam */
.webwiz-fe-btn-border-beam {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 320%;
  height: 640%;
  transform: translate(-50%, -50%);
  background: conic-gradient(
    from 0deg,
    transparent 0deg,
    transparent 45deg,
    #38bdf8 85deg,
    #ffffff 120deg,
    #818cf8 155deg,
    transparent 195deg,
    transparent 360deg
  );
  animation: webwizFeBorderSpin 3.5s linear infinite;
  pointer-events: none;
  z-index: 1;
}

/* Inner button pill */
.webwiz-fe-btn-inner {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 14px 34px;
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  border-radius: 999px;
  box-sizing: border-box;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25);
  transition: background 0.25s ease, box-shadow 0.25s ease;

  @media (max-width: 600px) {
    padding: 13px 20px;
  }
}

.webwiz-fe-btn-text {
  font-family: var(--webwiz-num-font, "Outfit", sans-serif);
  font-size: clamp(13.5px, 1.6vw, 15.5px);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #ffffff;
  white-space: nowrap;

  @media (max-width: 600px) {
    font-size: 13px;
    white-space: normal;
    text-align: center;
  }
}

@keyframes webwizFeBorderSpin {
  0% {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  100% {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .webwiz-fe-btn-border-beam {
    animation: none;
    opacity: 0.8;
  }
}

.webwiz-fe-cta-bar__privacy {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 500;
  color: #64748b;

  svg {
    flex-shrink: 0;
  }
}

.webwiz-fe-restart-row {
  margin-top: 8px;
}

.webwiz-fe-btn-restart {
  background: transparent;
  border: none;
  color: #64748b;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  padding: 3px 8px;
  border-radius: 5px;
  transition: all 0.2s ease;

  &:hover {
    color: #2563eb;
    background: rgba(37, 99, 235, 0.06);
  }
}

/* --------------------------------------------------------------------------
   08a. Gated Assessment Complete Teaser Card
   -------------------------------------------------------------------------- */
.webwiz-fe-gated-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 28px;
  padding: 48px 36px;
  margin: 0 auto 36px auto;
  max-width: 680px;
  text-align: center;
  box-shadow:
    0 20px 50px -10px rgba(15, 29, 51, 0.08),
    0 1px 3px rgba(15, 29, 51, 0.04);
  animation: webwizFeFadeSlide 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;

  @media (max-width: 600px) {
    padding: 32px 20px;
    border-radius: 20px;
  }
}

.webwiz-fe-gated-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(37, 99, 235, 0.08);
  border: 1px solid rgba(37, 99, 235, 0.2);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: #2563eb;
  margin-bottom: 16px;
}

.webwiz-fe-gated-title {
  font-family: var(--tp-ff-heading, "Outfit", sans-serif);
  font-size: clamp(22px, 3.5vw, 30px);
  font-weight: 700;
  color: #0f1d33;
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin: 0 0 12px 0;
}

.webwiz-fe-gated-desc {
  font-size: 15px;
  color: #475569;
  line-height: 1.6;
  max-width: 540px;
  margin: 0 auto 28px auto;
}

.webwiz-fe-gated-actions {
  display: flex;
  justify-content: center;
  margin-bottom: 16px;
}

.webwiz-fe-btn-unlock {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 18px 42px;
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  color: #ffffff;
  border: none;
  border-radius: 999px;
  font-family: var(--tp-ff-heading, "Outfit", sans-serif);
  font-size: clamp(15px, 2vw, 17px);
  font-weight: 700;
  letter-spacing: -0.01em;
  cursor: pointer;
  overflow: hidden;
  box-shadow:
    0 12px 32px -4px rgba(37, 99, 235, 0.45),
    0 0 0 1px rgba(255, 255, 255, 0.25) inset;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);

  &:hover {
    background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
    transform: translateY(-3px) scale(1.01);
    box-shadow:
      0 18px 42px -4px rgba(37, 99, 235, 0.55),
      0 0 0 1px rgba(255, 255, 255, 0.4) inset;
  }

  &:active {
    transform: translateY(-1px) scale(0.99);
  }

  .webwiz-fe-sparkle {
    font-size: 18px;
  }
}

.webwiz-fe-gated-privacy {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: #64748b;
  margin-bottom: 8px;

  svg {
    flex-shrink: 0;
  }
}

/* --------------------------------------------------------------------------
   08b. VisionOS Glass Contact Info Popup Modal
   -------------------------------------------------------------------------- */
html.fe-modal-open,
body.fe-modal-open {
  overflow: hidden;
  touch-action: none;
}

body.fe-modal-open .tp-site-header {
  z-index: 10;
  pointer-events: none;
}

.webwiz-fe-modal-overlay {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 99999999;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 40px 20px;
  box-sizing: border-box;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.3s cubic-bezier(0.16, 1, 0.3, 1);

  &.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;

    .webwiz-fe-modal-dialog {
      transform: scale(1) translateY(0);
      opacity: 1;
    }
  }

  @media (max-width: 600px) {
    padding: 16px 12px;
  }
}

.webwiz-fe-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.webwiz-fe-modal-dialog {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 520px;
  margin: auto;
  max-height: calc(100vh - 60px);
  overflow-y: auto;
  overscroll-behavior: contain;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(32px);
  -webkit-backdrop-filter: blur(32px);
  border: 1.5px solid rgba(255, 255, 255, 0.95);
  border-radius: 22px;
  padding: 24px 28px 22px;
  box-shadow:
    0 25px 65px -12px rgba(15, 29, 51, 0.40),
    0 0 0 1px rgba(226, 232, 240, 0.6);
  box-sizing: border-box;
  transform: scale(0.92) translateY(18px);
  opacity: 0;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1);

  @media (max-width: 600px) {
    padding: 20px 16px 18px;
    border-radius: 18px;
    max-height: calc(100vh - 24px);
  }
}

.webwiz-fe-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
  cursor: pointer;
  padding: 0;
  transition: all 0.2s ease;

  &:hover {
    background: #f1f5f9;
    color: #0f1d33;
    border-color: #cbd5e1;
    transform: rotate(90deg);
  }

  &:focus-visible {
    outline: 2px solid #2563eb;
    outline-offset: 2px;
  }
}

.webwiz-fe-modal-header {
  text-align: center;
  margin-bottom: 14px;
}

.webwiz-fe-modal-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 12px;
  background: rgba(37, 99, 235, 0.08);
  border: 1px solid rgba(37, 99, 235, 0.2);
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #2563eb;
  margin-bottom: 6px;
}

.webwiz-fe-modal-title {
  font-family: var(--tp-ff-heading, "Outfit", sans-serif);
  font-size: clamp(17px, 2.2vw, 21px);
  font-weight: 700;
  color: #0f1d33;
  letter-spacing: -0.015em;
  line-height: 1.25;
  margin: 0;
}

.webwiz-fe-modal-subtitle {
  display: none;
  margin: 0;
}

.webwiz-fe-modal-fields {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 22px;
}

.webwiz-fe-form-group {
  display: flex;
  flex-direction: column;

  label {
    font-size: 13px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 4px;
  }
}

.webwiz-fe-input-wrap {
  position: relative;
  display: flex;
  align-items: center;

  .webwiz-fe-input-icon {
    position: absolute;
    left: 14px;
    color: #94a3b8;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    transition: color 0.2s ease;
  }

  input,
  select {
    width: 100%;
    padding: 13px 16px 13px 44px;
    background: #ffffff;
    border: 1.5px solid #cbd5e1;
    border-radius: 12px;
    font-family: inherit;
    font-size: 14.5px;
    color: #0f1d33;
    box-sizing: border-box;
    transition: all 0.2s ease;

    &::placeholder {
      color: #94a3b8;
    }

    &:focus {
      outline: none;
      border-color: #2563eb;
      box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);

      + .webwiz-fe-input-icon,
      & ~ .webwiz-fe-input-icon {
        color: #2563eb;
      }
    }
  }

  &.webwiz-fe-select-wrap select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 40px;
    cursor: pointer;
  }

  &:focus-within .webwiz-fe-input-icon {
    color: #2563eb;
  }
}

.webwiz-fe-modal-actions {
  text-align: center;
  margin-bottom: 12px;
}

.webwiz-fe-btn-submit {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 16px 28px;
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  color: #ffffff;
  border: none;
  border-radius: 999px;
  font-family: var(--tp-ff-heading, "Outfit", sans-serif);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  box-shadow:
    0 10px 25px -4px rgba(37, 99, 235, 0.40),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);

  &:hover {
    background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
    transform: translateY(-2px);
    box-shadow:
      0 14px 32px -4px rgba(37, 99, 235, 0.48),
      inset 0 1px 0 rgba(255, 255, 255, 0.35);
  }

  &:disabled {
    opacity: 0.75;
    cursor: not-allowed;
    transform: none;
  }
}

.webwiz-fe-modal-privacy {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 12px;
  color: #64748b;
  text-align: center;

  svg {
    flex-shrink: 0;
  }
}



/* --------------------------------------------------------------------------
   09. High-Trust Executive Dossier Confirmation & Status Card
   -------------------------------------------------------------------------- */
.webwiz-fe-dossier-confirmation {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  padding: 32px 36px;
  box-shadow: 0 12px 32px -6px rgba(15, 29, 51, 0.08);
  margin-top: 16px;
  text-align: left;
}

.webwiz-fe-confirm-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #1e3a8a;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
}

.webwiz-fe-pulse-dot {
  width: 8px;
  height: 8px;
  background: #2563eb;
  border-radius: 50%;
  animation: webwiz-pulse 1.8s infinite ease-in-out;
}

@keyframes webwiz-pulse {
  0% {
    transform: scale(0.9);
    box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.7);
  }
  70% {
    transform: scale(1.15);
    box-shadow: 0 0 0 8px rgba(37, 99, 235, 0);
  }
  100% {
    transform: scale(0.9);
    box-shadow: 0 0 0 0 rgba(37, 99, 235, 0);
  }
}

.webwiz-fe-confirm-title {
  font-family: var(--tp-ff-heading, "Outfit", sans-serif);
  font-size: 22px;
  font-weight: 800;
  color: #0f1d33;
  letter-spacing: -0.02em;
  margin: 0 0 10px;
  line-height: 1.3;
}

.webwiz-fe-confirm-summary {
  font-size: 14px;
  color: #475569;
  line-height: 1.65;
  margin: 0 0 20px;
}

.webwiz-fe-confirm-dispatch-box {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-left: 4px solid #2563eb;
  border-radius: 8px;
  padding: 14px 18px;
  margin-bottom: 22px;
}

.webwiz-fe-dispatch-icon {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: #eff6ff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.webwiz-fe-dispatch-target {
  font-size: 13.5px;
  color: #0f1d33;
  margin-bottom: 2px;
}

.webwiz-fe-dispatch-target strong {
  color: #2563eb;
  font-weight: 700;
  word-break: break-all;
}

.webwiz-fe-dispatch-eta {
  font-size: 11.5px;
  color: #64748b;
  font-weight: 500;
}

.webwiz-fe-confirm-meta-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}

@media (max-width: 600px) {
  .webwiz-fe-confirm-meta-grid {
    grid-template-columns: 1fr;
  }
}

.webwiz-fe-confirm-meta-item {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 10px 14px;
}

.webwiz-fe-confirm-meta-label {
  display: block;
  font-size: 9.5px;
  font-weight: 800;
  color: #64748b;
  letter-spacing: 0.08em;
  margin-bottom: 2px;
}

.webwiz-fe-confirm-meta-item strong {
  font-size: 12.5px;
  color: #0f1d33;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.webwiz-fe-confirm-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.webwiz-fe-btn-print-draft {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  color: #0f1d33;
  border: 1px solid #cbd5e1;
  padding: 13px 22px;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 1px 2px rgba(15, 29, 51, 0.05);

  &:hover {
    background: #f8fafc;
    border-color: #94a3b8;
    color: #2563eb;
  }
}

/* --------------------------------------------------------------------------
   10. McKinsey Executive Printable Paper Letterhead Styles
   -------------------------------------------------------------------------- */
.webwiz-fe-paper-container {
  display: none;
}

.webwiz-fe-paper {
  background: #ffffff;
  color: #1e293b;
  font-family: var(--tp-ff-body, 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif);
  font-size: 13.5px;
  line-height: 1.6;
  width: 100%;
  max-width: 860px;
  margin: 0 auto;
  padding: 48px 52px;
  border-radius: 10px;
  border: 1px solid #cbd5e1;
  box-shadow: 0 20px 45px -10px rgba(15, 29, 51, 0.1);
}

.webwiz-fe-paper-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  border-bottom: 2px solid #0f1d33;
  padding-bottom: 16px;
  margin-bottom: 20px;
}

.webwiz-fe-ph-logo {
  font-family: var(--tp-ff-heading, 'Outfit', sans-serif);
  font-size: 24px;
  font-weight: 800;
  color: #0f1d33;
  letter-spacing: -0.03em;
}

.webwiz-fe-ph-logo span,
.webwiz-fe-ph-logo .webwiz-fe-accent {
  color: #2563eb;
}

.webwiz-fe-ph-sub {
  font-size: 11px;
  font-weight: 600;
  color: #475569;
  letter-spacing: 0.04em;
  margin-top: 2px;
}

.webwiz-fe-ph-right {
  text-align: right;
}

.webwiz-fe-doc-badge {
  font-size: 10px;
  font-weight: 800;
  color: #ffffff;
  background: #0f1d33;
  padding: 4px 10px;
  border-radius: 4px;
  letter-spacing: 0.08em;
  display: inline-block;
  margin-bottom: 4px;
}

.webwiz-fe-doc-ref {
  font-size: 11px;
  font-family: monospace;
  font-weight: 700;
  color: #475569;
}

.webwiz-fe-doc-date {
  font-size: 11px;
  font-weight: 600;
  color: #475569;
}

.webwiz-fe-paper-title-block {
  margin-bottom: 22px;
}

.webwiz-fe-paper-heading {
  font-family: var(--tp-ff-heading, 'Outfit', sans-serif);
  font-size: 22px;
  font-weight: 800;
  color: #0f1d33;
  letter-spacing: -0.02em;
  margin: 0 0 4px;
  line-height: 1.25;
}

.webwiz-fe-paper-subheading {
  font-size: 13px;
  color: #475569;
  font-weight: 500;
}

.webwiz-fe-paper-meta-box {
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 14px 18px;
  margin-bottom: 24px;
}

.webwiz-fe-pm-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 10px;
}

.webwiz-fe-pm-row:last-child {
  margin-bottom: 0;
  padding-top: 10px;
  border-top: 1px solid #e2e8f0;
}

.webwiz-fe-pm-label {
  display: block;
  font-size: 9.5px;
  font-weight: 800;
  color: #64748b;
  letter-spacing: 0.08em;
  margin-bottom: 2px;
}

.webwiz-fe-pm-cell strong {
  font-size: 12.5px;
  color: #0f1d33;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.webwiz-fe-paper-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 28px;
}

.webwiz-fe-paper-kpi-card {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 12px;
  text-align: center;
  box-shadow: 0 1px 3px rgba(15, 29, 51, 0.04);
}

.webwiz-fe-paper-kpi-val {
  font-family: var(--tp-ff-heading, 'Outfit', sans-serif);
  font-size: 20px;
  font-weight: 800;
  color: #0f1d33;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.webwiz-fe-paper-kpi-lbl {
  font-size: 9.5px;
  font-weight: 800;
  color: #475569;
  letter-spacing: 0.07em;
  margin-top: 3px;
}

.webwiz-fe-paper-kpi-sub {
  font-size: 10px;
  color: #94a3b8;
}

.webwiz-fe-paper-stage-block {
  border: 1px solid #cbd5e1;
  border-left: 4px solid #2563eb;
  border-radius: 8px;
  padding: 16px 20px;
  margin-bottom: 18px;
  background: #ffffff;
  page-break-inside: avoid;
  break-inside: avoid;
}

.webwiz-fe-paper-stage-block--goal {
  border-left-color: #059669;
  background: rgba(5, 150, 105, 0.02);
}

.webwiz-fe-psb-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}

.webwiz-fe-psb-timeline {
  font-size: 10px;
  font-weight: 800;
  background: #eff6ff;
  color: #2563eb;
  padding: 2px 8px;
  border-radius: 4px;
  letter-spacing: 0.06em;
}

.webwiz-fe-paper-stage-block--goal .webwiz-fe-psb-timeline {
  background: #ecfdf5;
  color: #059669;
}

.webwiz-fe-psb-phase {
  font-size: 10px;
  font-weight: 700;
  color: #64748b;
  letter-spacing: 0.08em;
}

.webwiz-fe-psb-title {
  font-family: var(--tp-ff-heading, 'Outfit', sans-serif);
  font-size: 15px;
  font-weight: 700;
  color: #0f1d33;
  margin: 0 0 8px;
}

.webwiz-fe-psb-content {
  font-size: 12.5px;
  color: #334155;
  line-height: 1.65;
}

.webwiz-fe-psb-content p {
  margin: 0 0 6px;
}

.webwiz-fe-psb-content p:last-child {
  margin-bottom: 0;
}

.webwiz-fe-psb-bullets {
  margin: 6px 0;
  padding-left: 0;
  list-style: none;
}

.webwiz-fe-psb-bullets li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 6px;
  font-size: 12.5px;
}

.webwiz-fe-psb-bullets li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #059669;
  font-weight: 800;
}

.webwiz-fe-paper-terms {
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 14px 18px;
  margin: 24px 0 20px;
  page-break-inside: avoid;
  break-inside: avoid;
}

.webwiz-fe-paper-guarantee-badge {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 12px;
  color: #334155;
  line-height: 1.55;
}

.webwiz-fe-paper-guarantee-badge svg {
  flex-shrink: 0;
  margin-top: 1px;
}

.webwiz-fe-paper-signoff {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  border-top: 1px solid #cbd5e1;
  padding-top: 18px;
  margin-top: 20px;
  page-break-inside: avoid;
  break-inside: avoid;
}

.webwiz-fe-paper-signer-title {
  font-size: 10px;
  font-weight: 800;
  color: #64748b;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.webwiz-fe-paper-signer-name {
  font-family: var(--tp-ff-heading, 'Outfit', sans-serif);
  font-size: 16px;
  font-weight: 800;
  color: #0f1d33;
  margin: 2px 0 1px;
}

.webwiz-fe-paper-signer-agency {
  font-size: 11.5px;
  color: #475569;
}

.webwiz-fe-paper-cta-box {
  text-align: right;
  font-size: 12px;
  color: #334155;
  line-height: 1.5;
}

.webwiz-fe-paper-cta-box a {
  color: #2563eb;
  text-decoration: none;
  font-weight: 600;
}

.webwiz-fe-paper-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid #e2e8f0;
  padding-top: 12px;
  margin-top: 20px;
  font-size: 11px;
  color: #94a3b8;
}

.webwiz-fe-restart-row {
  text-align: center;
  margin-top: 20px;
}

.webwiz-fe-btn-restart {
  background: transparent;
  border: none;
  color: #64748b;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  padding: 8px 16px;
  border-radius: 8px;
  transition: all 0.2s ease;

  &:hover {
    color: #0f1d33;
    background: rgba(15, 29, 51, 0.05);
  }
}

/* --------------------------------------------------------------------------
   11. Native Print Stylesheet (Isolates print portal & flush-top Page 1)
   -------------------------------------------------------------------------- */
@page {
  size: A4 portrait;
  margin: 14mm 12mm 14mm 12mm;
}

@media print {
  html,
  body {
    background: #ffffff;
    margin: 0;
    padding: 0;
    font-size: 11pt;
    line-height: 1.5;
  }

  html body > *:not(#webwiz-fe-print-portal) {
    display: none;
  }

  #webwiz-fe-print-portal {
    display: block;
    margin: 0;
    padding: 0;
    width: 100%;
    position: static;
  }

  #webwiz-fe-paper-print,
  #webwiz-fe-paper {
    display: block;
    margin: 0;
    padding: 0;
    border: none;
    border-radius: 0;
    box-shadow: none;
    background: #ffffff;
    width: 100%;
    max-width: 100%;
  }

  .webwiz-fe-paper-header,
  .webwiz-fe-paper-meta-box,
  .webwiz-fe-paper-kpi-grid,
  .webwiz-fe-paper-stage-block,
  .webwiz-fe-paper-terms,
  .webwiz-fe-paper-signoff {
    page-break-inside: avoid;
    break-inside: avoid;
  }
}
