.ied-demo {
  --ied-brand: #0b2559;
  --ied-accent: #2271b1;
  --ied-border: #e4e8ef;
  --ied-muted: #5c6678;
  max-width: 1080px;
  margin: 0 auto 3rem;
  font-family: inherit;
  color: #1a1f2c;
}

.ied-demo * {
  box-sizing: border-box;
}

.ied-demo__hero {
  text-align: center;
  margin-bottom: 2rem;
  padding: 0 1rem;
}

.ied-demo__eyebrow {
  margin: 0 0 0.5rem;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ied-accent);
}

.ied-demo__hero h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  line-height: 1.2;
  color: var(--ied-brand);
}

.ied-demo__lead {
  margin: 0 auto;
  max-width: 42rem;
  color: var(--ied-muted);
  line-height: 1.65;
}

.ied-demo__tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.ied-demo__tab {
  appearance: none;
  border: 1px solid var(--ied-border);
  background: #fff;
  color: var(--ied-brand);
  border-radius: 999px;
  padding: 0.65rem 1.1rem;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.ied-demo__tab:hover,
.ied-demo__tab.is-active {
  background: var(--ied-brand);
  border-color: var(--ied-brand);
  color: #fff;
}

.ied-demo__panel {
  display: none;
  border: 1px solid var(--ied-border);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 8px 28px rgba(11, 37, 89, 0.08);
  overflow: hidden;
}

.ied-demo__panel.is-active {
  display: block;
}

.ied-demo__panel-head {
  padding: 1.25rem 1.5rem 0;
}

.ied-demo__panel-head h2 {
  margin: 0 0 0.35rem;
  font-size: 1.25rem;
  color: var(--ied-brand);
}

.ied-demo__panel-head p {
  margin: 0 0 0.75rem;
  color: var(--ied-muted);
  line-height: 1.6;
}

.ied-demo__actions {
  margin-bottom: 1rem !important;
}

.ied-demo__btn {
  display: inline-block;
  padding: 0.55rem 1rem;
  border-radius: 6px;
  background: var(--ied-brand);
  color: #fff !important;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
}

.ied-demo__btn:hover {
  background: var(--ied-accent);
  color: #fff !important;
}

.ied-demo__request-wrap {
  padding: 0 1.5rem 1.5rem;
}

.ied-demo__frame {
  display: block;
  width: 100%;
  min-height: 72vh;
  border: 0;
  border-top: 1px solid var(--ied-border);
  background: #f7f8fa;
}

@media (max-width: 640px) {
  .ied-demo__panel-head,
  .ied-demo__request-wrap {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .ied-demo__frame {
    min-height: 60vh;
  }
}
