@import none;

/* ==========================================
   ALDWIN / PARDOT COMPARISON
   SECTION 05 / PERFORMANCE INTELLIGENCE
   ========================================== */

.aldwin-insights-story,
.aldwin-insights-story * {
  box-sizing: border-box;
}

.aldwin-insights-story {
  width: 100%;
  max-width: 1510px;
  margin: 0 auto;
  padding: 0 !important;
  background: transparent !important;
  font-family: 'Inter', Arial, sans-serif;
  color: #191919;
  -webkit-font-smoothing: antialiased;
}

/* MAIN LAYOUT */

.aldwin-insights-story .ais-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
  gap: clamp(45px, 5.5vw, 94px);
  align-items: center;
}

/* ==========================================
   LEFT COLUMN / EDITORIAL COPY
   ========================================== */

.aldwin-insights-story .ais-content {
  min-width: 0;
}

.aldwin-insights-story .ais-content h2 {
  margin: 0 0 30px !important;
  padding: 0 !important;
  font-family: 'Inter', sans-serif !important;
  font-size: 44px !important;
  font-weight: 500 !important;
  line-height: 1.09 !important;
  letter-spacing: -.048em !important;
  color: #191919 !important;
}

.aldwin-insights-story .ais-content h2 span {
  display: block;
  color: #898D93 !important;
}

.aldwin-insights-story .ais-content p {
  max-width: 700px;
  margin: 0 0 20px !important;
  padding: 0 !important;
  font-family: 'Inter', sans-serif !important;
  font-size: 18px !important;
  font-weight: 400 !important;
  line-height: 1.3em !important;
  letter-spacing: 0 !important;
  color: #7B7B7B !important;
}

.aldwin-insights-story .ais-content p:last-of-type {
  margin-bottom: 0 !important;
}

.aldwin-insights-story .ais-takeaway {
  max-width: 690px;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid #5A5D5B26;
  font-family: 'Inter', sans-serif;
  font-size: 19px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: -.02em;
  color: #191919;
}

/* ==========================================
   ALDWIN AMBIENT LIGHT BACKGROUND
   ========================================== */

.aldwin-insights-story .ais-canvas {
  position: relative;
  isolation: isolate;
  min-width: 0;
  min-height: 545px;
  overflow: hidden;
  border: 1px solid #5A5D5B26;
  border-radius: 0;
  background:
    radial-gradient(
      ellipse at 14% 88%,
      rgba(177,209,192,.70),
      transparent 57%
    ),
    radial-gradient(
      ellipse at 88% 12%,
      rgba(189,190,229,.72),
      transparent 54%
    ),
    radial-gradient(
      ellipse at 42% 22%,
      rgba(245,248,245,.79),
      transparent 57%
    ),
    linear-gradient(
      132deg,
      #DCE1DF 0%,
      #F1F1F3 48%,
      #D4D9DF 100%
    );
}

.aldwin-insights-story .ais-canvas::before {
  content: "";
  position: absolute;
  inset: -20%;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(
      112deg,
      transparent 9%,
      rgba(255,255,255,.57) 27%,
      transparent 43%,
      rgba(255,255,255,.39) 68%,
      transparent 83%
    ),
    radial-gradient(
      ellipse at 89% 86%,
      rgba(90,106,154,.20),
      transparent 53%
    );
  filter: blur(37px);
  transform: rotate(-6deg);
}

.aldwin-insights-story .ais-canvas::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  opacity: .12;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.88' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.42'/%3E%3C/svg%3E");
}

/* ==========================================
   APPLICATION WINDOW
   ========================================== */

.aldwin-insights-story .ais-app {
  position: relative;
  z-index: 2;
  width: calc(100% - 58px);
  margin: 38px auto;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.85);
  border-radius: 16px;
  background: rgba(250,251,250,.96);
  box-shadow:
    0 0 0 1px rgba(20,30,25,.04),
    0 16px 36px rgba(22,39,32,.10),
    0 39px 85px rgba(22,39,32,.10);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

/* TOP BAR */

.aldwin-insights-story .ais-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 15px 20px;
  border-bottom: 1px solid #E7EAE7;
  background: rgba(255,255,255,.5);
}

.aldwin-insights-story .ais-breadcrumb {
  color: #78807B;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.3;
}

.aldwin-insights-story .ais-preview {
  color: #A0A6A1;
  font-size: 10px;
  line-height: 1.3;
  white-space: nowrap;
}

.aldwin-insights-story .ais-body {
  padding: 21px 21px 19px;
}

/* PERFORMANCE HEADER */

.aldwin-insights-story .ais-eyebrow {
  margin-bottom: 9px;
  color: #939A95;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .025em;
}

.aldwin-insights-story .ais-heading-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.aldwin-insights-story .ais-title {
  color: #252A26;
  font-size: 22px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -.045em;
}

.aldwin-insights-story .ais-subtitle {
  margin-top: 6px;
  color: #959B96;
  font-size: 11px;
  line-height: 1.4;
}

.aldwin-insights-story .ais-period {
  flex-shrink: 0;
  padding: 7px 9px;
  border: 1px solid #E3E7E3;
  border-radius: 6px;
  background: #F7F8F7;
  color: #78817A;
  font-size: 10px;
  font-weight: 500;
  white-space: nowrap;
}

/* PERFORMANCE METRICS */

.aldwin-insights-story .ais-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 12px;
  margin-top: 20px;
}

.aldwin-insights-story .ais-metric {
  min-width: 0;
  padding: 14px 15px;
  border: 1px solid #E6EAE6;
  border-radius: 10px;
  background: #F7F8F7;
}

.aldwin-insights-story .ais-metric-label {
  color: #919993;
  font-size: 10px;
  line-height: 1.3;
}

.aldwin-insights-story .ais-metric-line {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 8px;
}

.aldwin-insights-story .ais-metric-value {
  color: #29352D;
  font-size: 24px;
  line-height: 1.1;
  font-weight: 500;
  letter-spacing: -.045em;
}

.aldwin-insights-story .ais-metric-change {
  color: #A07866;
  font-size: 10px;
  font-weight: 500;
}

.aldwin-insights-story .ais-metric-context {
  margin-top: 5px;
  color: #A1A7A1;
  font-size: 10px;
  line-height: 1.35;
}

/* TREND PANEL */

.aldwin-insights-story .ais-trend {
  margin-top: 16px;
  padding: 14px 14px 12px;
  border: 1px solid #E6EAE6;
  border-radius: 10px;
  background: #FFFFFF;
}

.aldwin-insights-story .ais-trend-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.aldwin-insights-story .ais-trend-title {
  color: #555E57;
  font-size: 11px;
  font-weight: 500;
}

.aldwin-insights-story .ais-trend-legend {
  display: flex;
  align-items: center;
  gap: 11px;
  color: #9AA19B;
  font-size: 9px;
}

.aldwin-insights-story .ais-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.aldwin-insights-story .ais-legend-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #648E76;
}

.aldwin-insights-story .ais-legend-dot.previous {
  background: #C8CFCA;
}

.aldwin-insights-story .ais-chart {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

.aldwin-insights-story .ais-chart text {
  fill: #ADB3AE;
  font-family: Inter, Arial, sans-serif;
  font-size: 9px;
  font-weight: 400;
}

/* INVESTIGATION */

.aldwin-insights-story .ais-investigation {
  margin-top: 17px;
}

.aldwin-insights-story .ais-section-heading {
  margin-bottom: 9px;
  color: #555E57;
  font-size: 11px;
  font-weight: 500;
}

.aldwin-insights-story .ais-signal {
  display: grid;
  grid-template-columns: 19px minmax(0,1fr);
  gap: 9px;
  align-items: start;
  padding: 9px 0;
  border-bottom: 1px solid #EBEEEB;
}

.aldwin-insights-story .ais-signal:last-child {
  border-bottom: 0;
}

.aldwin-insights-story .ais-signal-number {
  display: grid;
  place-items: center;
  width: 19px;
  height: 19px;
  border-radius: 6px;
  background: #F0F2F0;
  border: 1px solid #E5E9E5;
  color: #7D8980;
  font-size: 10px;
  font-weight: 500;
}

.aldwin-insights-story .ais-signal-title {
  color: #404A42;
  font-size: 11px;
  line-height: 1.35;
  font-weight: 500;
}

.aldwin-insights-story .ais-signal-desc {
  margin-top: 3px;
  color: #9AA19B;
  font-size: 10px;
  line-height: 1.4;
  font-weight: 400;
}

/* SUGGESTED IMPROVEMENT */

.aldwin-insights-story .ais-recommendation {
  margin-top: 15px;
  padding: 14px 15px;
  border: 1px solid #DCE8DF;
  border-radius: 10px;
  background: linear-gradient(
    132deg,
    #F6FAF7 0%,
    #EDF5F0 100%
  );
}

.aldwin-insights-story .ais-rec-label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  color: #60816B;
  font-size: 10px;
  font-weight: 500;
}

.aldwin-insights-story .ais-rec-dot {
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: #86AE91;
}

.aldwin-insights-story .ais-rec-title {
  color: #2F4536;
  font-size: 12px;
  line-height: 1.4;
  font-weight: 500;
}

.aldwin-insights-story .ais-rec-desc {
  margin-top: 5px;
  color: #7F9083;
  font-size: 10px;
  line-height: 1.5;
}

.aldwin-insights-story .ais-rec-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 13px;
  padding-top: 11px;
  border-top: 1px solid #DCE8DE;
}

.aldwin-insights-story .ais-rec-note {
  color: #92A295;
  font-size: 10px;
}

.aldwin-insights-story .ais-rec-status {
  padding: 6px 9px;
  border: 1px solid #D3E2D7;
  border-radius: 6px;
  background: #F7FAF7;
  color: #5A7C65;
  font-size: 10px;
  font-weight: 500;
  white-space: nowrap;
}

/* ==========================================
   RESPONSIVE
   ========================================== */

@media (max-width: 1050px) {
  .aldwin-insights-story .ais-layout {
    gap: 35px;
  }

  .aldwin-insights-story .ais-app {
    width: calc(100% - 36px);
  }
}

@media (max-width: 900px) {
  .aldwin-insights-story .ais-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .aldwin-insights-story .ais-canvas {
    max-width: 720px;
  }
}

@media (max-width: 560px) {
  .aldwin-insights-story .ais-content h2 {
    font-size: 44px !important;
    font-weight: 500 !important;
    margin-bottom: 22px !important;
  }

  .aldwin-insights-story .ais-content p {
    font-size: 18px !important;
    line-height: 1.3em !important;
  }

  .aldwin-insights-story .ais-canvas {
    min-height: 0;
  }

  .aldwin-insights-story .ais-app {
    width: calc(100% - 28px);
    margin: 20px auto;
  }

  .aldwin-insights-story .ais-topbar {
    padding: 13px;
  }

  .aldwin-insights-story .ais-body {
    padding: 16px 13px;
  }

  .aldwin-insights-story .ais-title {
    font-size: 19px;
  }

  .aldwin-insights-story .ais-metric {
    padding: 12px 10px;
  }

  .aldwin-insights-story .ais-metric-value {
    font-size: 21px;
  }

  .aldwin-insights-story .ais-metric-change {
    font-size: 9px;
  }

  .aldwin-insights-story .ais-trend {
    padding: 12px 10px;
  }

  .aldwin-insights-story .ais-trend-legend {
    gap: 7px;
  }
}
